[Dropped] Save macro only

Discuss the word processor
Post Reply
BubikolRamios
Posts: 91
Joined: Sat Jan 04, 2014 1:28 pm

[Dropped] Save macro only

Post by BubikolRamios »

Editing basic macro ...
Can't figure how to save only that, without saving document that contains that macro ?
Last edited by MrProgrammer on Thu Mar 23, 2023 5:01 am, edited 1 time in total.
Reason: Dropped: No response from BubikolRamios -- MrProgrammer, forum moderator
OPen office 4.1.5/ win 7
User avatar
Hagar Delest
Moderator
Posts: 32627
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Save macro only ?

Post by Hagar Delest »

Have you tried to save in "My macros"?
See if that helps: [Solved] How can I delete a macro from a document.

Please add [Solved] at the beginning of the title in your first post (top of the topic) with the *EDIT button if your issue has been fixed.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
BubikolRamios
Posts: 91
Joined: Sat Jan 04, 2014 1:28 pm

Re: Save macro only ?

Post by BubikolRamios »

In macro editing window

at top (which is at it looks like document thing, not current macro thing):
tools/macros/organise macros/OO office basic/select my macro
or even then select 'organizer' - there is no SAVE button, only delete.

I would suggest that compile button would also save (with a message that it saved macro - in case code is correct). It appears it does not do so.

Considerations(pops up having big document where macro is doing tons of things that takes time):
1. One does not want to do File/Reload and also reload macro that has been just edited/not saved
2. One does not want to run just edited macro (lenghty), that was already run (previou version). Want to reload document only, not it's macro.
OPen office 4.1.5/ win 7
User avatar
Villeroy
Volunteer
Posts: 31269
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Save macro only ?

Post by Villeroy »

Open your document.
Tools>Macros>Organize>Basic...
Button [Organizer...]
Open "My Macros", so you can see the "Standard" library under "My Macros".
Open your document's container and the library with your module.
Drag&Drop the module to MyMacros>Standard. Use Ctrl+Drag&Drop in order to copy the module instead of moving.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
BubikolRamios
Posts: 91
Joined: Sat Jan 04, 2014 1:28 pm

Re: Save macro only ?

Post by BubikolRamios »

Even so, no Save button.
OPen office 4.1.5/ win 7
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Save macro only ?

Post by RoryOF »

In the Macro editor there is a Save entry on the File menu.; this will not become active (dark)until you have entered something into the macro editor.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
User avatar
Villeroy
Volunteer
Posts: 31269
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Save macro only ?

Post by Villeroy »

menu:File>Export Basic... produces a plain text file from the active module.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
BubikolRamios
Posts: 91
Joined: Sat Jan 04, 2014 1:28 pm

Re: Save macro only ?

Post by BubikolRamios »

RoryOF wrote:In the Macro editor there is a Save entry on the File menu.; this will not become active (dark)until you have entered something into the macro editor.
EDIT! : I see what you mean now , but that saves all together macro and document. I don't want that, I want only macro to be saved.

Where is that ?
Attachments
tmp.jpg
tmp1.jpg
OPen office 4.1.5/ win 7
BubikolRamios
Posts: 91
Joined: Sat Jan 04, 2014 1:28 pm

Re: Save macro only ?

Post by BubikolRamios »

Villeroy wrote:menu:File>Export Basic... produces a plain text file from the active module.
found that, but that does only copy of code and not to where I want it - inside executable code - normal macro (in my case saved inside current document as it is part of it.). See OP.
OPen office 4.1.5/ win 7
BubikolRamios
Posts: 91
Joined: Sat Jan 04, 2014 1:28 pm

Re: Save macro only ?

Post by BubikolRamios »

To recuperate:
When I do File/Reload
I want only document to be reloaded, don't want macro within it to be reloaded, want to keep macro as it is at that point in macro editor.
OPen office 4.1.5/ win 7
User avatar
Hagar Delest
Moderator
Posts: 32627
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Save macro only ?

Post by Hagar Delest »

Have you tried to move the macro from the document to the standard library (that is in fact in your AOO user profile)? That's the first post from Villeroy.
If it doesn't answer your question, then I don't understand what you're trying to do.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
Post Reply