OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

[SOLVED] Export from text field from dialog to cell

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
sevalav
OOo Enthusiast
OOo Enthusiast


Joined: 19 Sep 2009
Posts: 119

PostPosted: Sat Oct 02, 2010 3:46 pm    Post subject: [SOLVED] Export from text field from dialog to cell Reply with quote

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
View user's profile Send private message
sevalav
OOo Enthusiast
OOo Enthusiast


Joined: 19 Sep 2009
Posts: 119

PostPosted: Sun Oct 03, 2010 4:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group