Johnny Andersson wrote:
To try to explain better, I have my subroutines and functions organized like
this (I changed the names of most things in this example):

MyMacroDocument.ods -> Standard -> CellFunctions:
I wrote a few cell functions, but don't bother about them, because they are
not a part of my problem...

MyMacroDocument.ods -> Standard -> OneMacro:
A macro with a few subroutines and functions.

MyMacroDocument.ods -> Standard -> AnotherMacro:
A macro with a few subroutines and functions, some of them are exactly the
same as some of the OneMacro ones, so I thought that I wouldn't have to
write them (or copy-paste them) again.

Do anyone have a clue about what I am talking about and how to solve the
"problem"?

Thanks

Johnny

I belivee that you said that you can NOT call a macro from one library to another. You can certainly do this providing the library is loaded and visible. So, you can not directly call a macro in a different document, but a different library should be automatic providing you have already loaded the library. As a start, (I am too tired to explain what is really going on here), open each macro for editing (one after the other) because this will force the libraries to be loaded. Now, have one macro call the other and it should work just fine.

The macros must have unique names. Meaning... If I ahve a macro named PrintThedocument() in two different libraries or modules, there will be a problem knowing which is called.

--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info:  http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to