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] Openoffice and Progress - Cell position

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


Joined: 08 Feb 2009
Posts: 41

PostPosted: Thu Feb 26, 2009 2:59 am    Post subject: [SOLVED] Openoffice and Progress - Cell position Reply with quote

Hi,

I'm looking to find a way to put a random cell (f.e. C5)
at the top-left corner (where normally A1 is).
By that I mean I don't want to copy the content,
but I just want that a random cell can be the first
visible cell on my spreadsheet...
I don't know how to realise this!
I hope someone can help me?

Default situation:
_____________________
|____|__A__|__B__|__C__|
|_1__|_____ |_____|_____|
|_2__|_____ |_____|_____|
|_3__|_____ |_____|_____|

What I want:
______________________
|____|__C__|__D__|__E__|
|_5__|_____|_____ |_____|
|_6__|_____|_____ |_____|
|_7__|_____|_____ |_____|

And this without losing any cells or content...

Thanks!
Maarten
_________________
openoffice 3.0.0
Openedge Progress version (10.1A - win 32 bit)


Last edited by ewicttvh08 on Thu Feb 26, 2009 6:23 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
uros
Super User
Super User


Joined: 22 May 2003
Posts: 601
Location: Slovenia

PostPosted: Thu Feb 26, 2009 5:28 am    Post subject: Reply with quote

Hi Maarten!

With StarBasic:
Code:
   oController = ThisComponent.currentController
   oController.setFirstVisibleColumn(2)
   oController.setFirstVisibleRow(3)

Uros
Back to top
View user's profile Send private message
ewicttvh08
General User
General User


Joined: 08 Feb 2009
Posts: 41

PostPosted: Thu Feb 26, 2009 6:23 am    Post subject: Reply with quote

Hi,

thanks a lot for your reply.
This example works like I want!

Thank you,
Maarten
_________________
openoffice 3.0.0
Openedge Progress version (10.1A - win 32 bit)
Back to top
View user's profile Send private message Send e-mail
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