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

Pass Macro name as argument

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


Joined: 19 Mar 2003
Posts: 1

PostPosted: Wed Mar 19, 2003 5:09 am    Post subject: Pass Macro name as argument Reply with quote

Hi
I am trying to create a batch-file which opens Openoffice and runs a macro. My problem is that I can't find any documentation on how to run the macro as a argumement.

This is my batch-file
C:\PROGRA~1\OPENOF~1.0\PROGRAM\OOOWRI~1.EXE C:/ootemp.sxw MacroName

Thanks
Henrik
Back to top
View user's profile Send private message
paolo
General User
General User


Joined: 02 Mar 2003
Posts: 31
Location: Italy

PostPosted: Thu Mar 20, 2003 11:08 am    Post subject: Re: Pass Macro name as argument Reply with quote

Hi coyote,

You can pass a macro as argument but you must pass it as a Ur, for example:
macro:///library.module.macro

Here you can find further infos:
http://www.openoffice.org/files/documents/25/60/Command_line_arguments_in_OpenOffice.html

Remember:
If you run a macro as command line argument, the macro will run twice.
This is a bug.
I've checked in the build 643 and this bug seems fixed but in the OOo 1.0.1 is still present.
I can't say nothing about the 1.0.2.

Ciao
Paolo Mantovani
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