| View previous topic :: View next topic |
| Author |
Message |
sevalav OOo Enthusiast

Joined: 19 Sep 2009 Posts: 119
|
Posted: Sat Oct 02, 2010 3:46 pm Post subject: [SOLVED] Export from text field from dialog to cell |
|
|
Hello,
I have dialog ("dialog1") with text field; how to put some text from this field to cell A1 in sheet1?
Thanks in advance
Last edited by sevalav on Sun Oct 03, 2010 4:32 pm; edited 1 time in total |
|
| Back to top |
|
 |
sevalav OOo Enthusiast

Joined: 19 Sep 2009 Posts: 119
|
Posted: Sun Oct 03, 2010 4:32 pm Post subject: |
|
|
I find solution:
sub FromFieldToCell
Dim oSheet,Cell, oField
oField = oDlg.getControl("TextField1")
oSheet = ThisComponent.Sheets.getByName("Sheet1")
cell = oSheet.getCellByPosition(0, 0)
cell.String = oField.Text
end sub |
|
| Back to top |
|
 |
|