I know this sounds very basic but I'm new at Open Office
how does this translate to Open Office
Mrow=3 ' row number
mcol =4 "column number
mystring="testing"
cells(mrow,mcol)=mystring
also
mystring=cells(mrow,mcol).value
[Solved] Reading and writing to a cell
[Solved] Reading and writing to a cell
Last edited by Hagar Delest on Wed Jun 21, 2017 9:41 pm, edited 1 time in total.
Reason: tagged [Solved].
Reason: tagged [Solved].
Open Office 4.1 on Windows 10
Re: Reading and writing to a cell
Code: Select all
oSheet = ThisComponent.CurrentController.ActiveSheet
Mrow=3 ' row number
mcol =4 'column number
mystring="testing"
oCell = oSheet.getCellByPosition(mcol,Mrow)
'cells(mrow,mcol)=mystring
oCell.String = mystring
mystring2 = oCell.String
'mystring=cells(mrow,mcol).value
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
Re: Reading and writing to a cell
Thanks, I'm just learning Star basic.
Open Office 4.1 on Windows 10