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

A little shaky on adding macros

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


Joined: 15 Jan 2004
Posts: 20

PostPosted: Wed Apr 26, 2006 12:47 pm    Post subject: A little shaky on adding macros Reply with quote

I've downloaded some macros from the www.oomacros.org site. Some of them conveniently come with installers, making it quite easy, but others do not - even lacking any instructions as to how to install them manually.

One such macro is the LeastSquaresFitting.sxc macro. It simply contains an "example" page and a page describing how least squares works. It says nothing about installing the macro.

I have attempted to install it thus (OOo 2.0.2):

Menu bar - Tools -> Macros -> Organize macros -> Openoffice.org Basic -> Libraries ->
and then attempting to append the thing to My macros. One of the problems with many of these macros is they contain a "Standard" library...but OOo already has a Standard library so I inevitably have to decide whether to overwrite the extant library with the new one. I always answer "no" because that just seems loonie.

How does one install macros such as the LeastSquaresFitting macro when it lacks any instructions or install macro AND contains a "Standard" lib that conflicts with the already existing one that OOo comes with?
Back to top
View user's profile Send private message
noranthon
Super User
Super User


Joined: 07 Jul 2005
Posts: 3318

PostPosted: Wed Apr 26, 2006 6:22 pm    Post subject: Reply with quote

The document has to be open to do this.

The easiest method is to select the first macro in the library and click on edit. Copy the entire contents of each module and paste it to a new module in the library where you want the macro. It may suit you to save each module as a text document (extension .bas) by using the icon at the far right of the lower toolbar in the editor. You can then open the target library and copy and paste from your text documents.

Alternatively, you could create a new library in the document and cut/copy and paste from the old library to the new, then append the new library, which would have a distinctive name. I cannot find any way to rename a library in a document. Such a device would simplify matters.
Back to top
View user's profile Send private message
JohnV
Administrator
Administrator


Joined: 07 Mar 2003
Posts: 9183
Location: Lexinton, Kentucky, USA

PostPosted: Thu Apr 27, 2006 10:06 am    Post subject: Reply with quote

Perhaps this will help.
http://www.oooforum.org/forum/viewtopic.phtml?t=7995
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