Johnny Rosenberg wrote:
OK, so there actually was something that I was missing. Thanks Andrew. You
helped me a lot before (when my last name was Andersson) with macros and you
did it again.
Why did you change your last name? None of my business of course.
I find it strange that I can not import the standard library and it would be
interesting to know why. Perhaps somebody made a joke about it many years
ago and a developer took it seriously..?
So that you would know that it would not change by accident probably. The Standard library is automatically loaded, so if you need a macro that starts when say a document is loaded, or OOo starts, it must in the Standard Library.

If I needed to replace a Standard Library, I would manually copy the files from the directory AFTER I made a backup of the existing directory. The reason that you need to import the macros is because, well, it is complicated....

you have a basic directory taht contains a file named dialog.sxc and scripts.sxc (or something like that). This file references the imported libraries. The Standard library is already referenced, if you simply copy another directory in place, it will not be referenced in this file.


Anyway, now we have to live with that ridiculous limit so I guess I have to
find a workaround. One that immediately comes to my mind is the following,
which I am going to try when I finished this message:

Shut down Ubuntu.
Start Windows.
Open OpenOFfice.org.
Copy the macros to a file.
Shut down Windows.
Start Ubuntu.
Find the file and export the macros somewhere.

So now the question is WHERE I want my macros if not in the Standard
library. Where else can I put them to make sure that they are active every
time I start OpenOffice.org? Or is it enough if they are in any folder under
My Macros?

Johnny Rosenberg

2007/9/5, Andrew Douglas Pitonyak <[EMAIL PROTECTED]>:
Johnny, I do not have time to completely answer your question, and you
probably do not really care about the complete correct answer. But, can
you do the following (this is mostly from Memory so if something seems
just a little off):

use Tools > Macros > Organize Macros > OpenOffice.org Basic to open a
dialog.

Click the Organizer button

Click the Libraries tab

These are your macros, so make certain that the drop down list says "My
Macros & Dialogs", since this identifies the "library container" that
will contain your macros.

Click the Import button

Navigate to the directory containing the macros.

Select a file named something like "scripts.xlc". There might be two
files, one saying "dialogs.xlc", and I think that it does not matter
which you select, either should import both. I always select scripts.xlc.

You can choose to import as a "link", I usually do NOT do that.
You can also check something like "overwrite existing library".

Also, you can NOT import the Standard library, which is why I do not use
that for important macros.



Johnny Rosenberg wrote:
Hi!

I just tried to import some macros I wrote in Windows XP long ago. Since
I
don't use Windows any more, even though I still have it installed, I
wanted
to use my old Basic macros in OpenOffice.org for Linux (Ubuntu 7.04 in
my
case).

Here's what I did:
I copied everything in ...\Application Data\OpenOffice.org2\user\basic
to
.../.openoffice.org2/user/basic, then restarted OpenOffice.org. When
clicking Organize Macros I can't see the new macros.

I did the same thing with my user dictionaries and that worked, so why
doesn't this? I haven't restarted my computer yet, but I can't see why
that
should be needed.

I guess I'm missing something. Can someone see what?

J.R.


--
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]




--
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