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

moving the cursor between sheets?

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
weezer
General User
General User


Joined: 05 May 2003
Posts: 8

PostPosted: Mon Jun 30, 2003 2:15 am    Post subject: moving the cursor between sheets? Reply with quote

Hi folks,

i am still trying to export a my whole sdc file as cvs files (sheet per sheet).

By now I am looking for a service which moves my cursor to the next sheet?

And i dont know what kind of object I have to iniate?

This one does not work:

Code:

...
sheeti = thiscomponent.sheets(i)
startcell = sheeti.gotocell ("A1")

both var have been dim as object.

thanx again for any hint
w
Back to top
View user's profile Send private message
dfrench
Moderator
Moderator


Joined: 03 Mar 2003
Posts: 1605
Location: Wellington, New Zealand

PostPosted: Mon Jun 30, 2003 2:51 am    Post subject: Reply with quote

Code:

i=0
while i < thiscomponent.sheets.count()
oSheet = thiscomponent.sheets(i)

'do something with oSheet object eg
oCell=oSheet.getcellbyposition(0,0)

i=i+1
wend



and read the starbasic programmer tutorial
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