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

How to run OpenOffice.org Basic macro in the background?

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


Joined: 18 Dec 2006
Posts: 2

PostPosted: Mon Dec 18, 2006 4:34 am    Post subject: How to run OpenOffice.org Basic macro in the background? Reply with quote

Hi,

I have created an OpenOffice.org Calc Basic macro in 2.0.4. It can be ran manually using Tools | Macros | Run Macro. Could anyone advise how to run the macro in the background, like using a DOS bat file or any other method?

Thanks in advance.
Back to top
View user's profile Send private message
pitonyak
Administrator
Administrator


Joined: 09 Mar 2004
Posts: 3655
Location: Columbus, Ohio, USA

PostPosted: Mon Dec 18, 2006 7:47 am    Post subject: Reply with quote

You can run macros from the command line:

Run a macro from the command line by specifying the name:
Code:
soffice.exe macro:///standard.module1.macro1

In this example, “standard” is the library name, “module1” is the module name, and “macro1” is the name of the macro. Now, you just need to trigger your batch file periodically.
_________________
--
Andrew Pitonyak
http://www.pitonyak.org/oo.php
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
boonteng
Newbie
Newbie


Joined: 18 Dec 2006
Posts: 2

PostPosted: Wed Dec 20, 2006 2:32 am    Post subject: got it, thanks Reply with quote

thanks
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