Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- REM ***** BASIC *****
- Sub Main
- Dim oWrkBk as Object
- Dim oSheet as Object
- oWrkBk = ThisComponent
- REM ** Getting by methods **
- oSheet = oWrkBk.getSheets().getByIndex(0)
- oSheet.getCellByPosition(0,0).String = "Hello"
- REM ** Getting by property **
- oSheet = oWrkBk.Sheets(0)
- oSheet.getCellByPosition(0,1).String = "Good Bye"
- REM ** Numbers use the Value not string property **
- oSheet.getCellByPosition(0,2).Value = 1.578
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement