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

Creating a starcalc radio button control or button

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


Joined: 03 Aug 2006
Posts: 1

PostPosted: Mon Jan 15, 2007 2:33 pm    Post subject: Creating a starcalc radio button control or button Reply with quote

Hi,

I am using visual basic 6 and I have been able to create a new starcalc sheet , add data,format, and use formulas.

My new req. is to be able to allow the user to press a button or radio button on the newly created sheet to recalc a value (revenue). I am very new to star office and im a little confused on the syntax to use in some cases (Uno service,java..)

Question: Is it possible to create a button or radio button on the newly created sheet dynamically and also have an event trigger to recalculate a field?

Summary:

- I have the code to open starcalc, add data, format etc.
- I need a way (macro?) to allow the user once the file is generated to click a button Let's say move value 1,1 to 5,6 (overwrite). Can this be done?

I have spent several days researching this and tried to use the dialog and even recorded a macro with an open sheet to see the code with no luck.

By the way, this document is created in another application so I do not have a template already out there, it is generated on the fly (spreadsheet pulling data from ext. db) using a vb dll called from the external app.

Any help would be appreciated.

Isabel
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
ms777
Super User
Super User


Joined: 07 Feb 2004
Posts: 1355

PostPosted: Tue Jan 16, 2007 1:38 pm    Post subject: Re: Creating a starcalc radio button control or button Reply with quote

InfinityMI wrote:
Question: Is it possible to create a button or radio button on the newly created sheet dynamically and also have an event trigger to recalculate a field?

for a OO Basic solution see e.g. http://www.oooforum.org/forum/viewtopic.phtml?t=35932 and the reference to DannyB therein
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