[Solved] Trying to Record a Macro in Writer - Can't save

Creating a macro - Writing a Script - Using the API

[Solved] Trying to Record a Macro in Writer - Can't save

Postby Ripley21 » Mon May 01, 2017 8:09 pm

I've found plenty of help for how to record a macro, but it's not working for me. First I open a text document, then
Tools > Macro > Record Macro
... so far so good. Then I execute the steps I want to record, then click "Stop Recording".
Then... nothing. I never get a dialog box to save the macro. I've looked to see if it saved it automatically, but not finding anything.

I'm running Windows 10 Home version 1607 build 14393.1066 on an Asus Laptop.
JRE 8 version update 131 (build 1.8.0_131-b11).
Open Office 4.1.3.

I don't know if I'm missing something, doing some wrong, or what. Does anyone have any suggestions?
Last edited by Hagar Delest on Tue May 02, 2017 10:34 pm, edited 1 time in total.
Reason: tagged [Solved].
OpenOffice 4.1.3 on Windows 10
Ripley21
 
Posts: 5
Joined: Thu Dec 29, 2016 9:54 pm

Re: Trying to Record a Macro in Writer - can't save Macro

Postby Zizi64 » Mon May 01, 2017 8:26 pm

Then I execute the steps I want to record

What steps? The macrorecorder can not record every activity. Use the Menu items instead of the short keys when you record a macro.
Tibor Kovacs, Hungary; LibreOffice4.4.7 - Portable versions: LO3.3.0-LO5.3.3 and AOO4.1.3; on Win7x64Prof.
Please, edit the topic's initial post, and add the word "[Solved]" at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 5124
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Trying to Record a Macro in Writer - can't save Macro

Postby Ripley21 » Mon May 01, 2017 11:00 pm

YAY - that was it!!! The good news is you were right. The bad news is I guess I can't record a macro for what I want to do. What I'm trying to do is make changes to a series of images. It appears I must do it one image at a time... But at least I had hoped to record a macro to do it and run the macro again for each image. However, when I try to record a macro for
Format > Picture > Width .7"

I guess a macro can't do that. But at least I know it will work for some other things in the future. Thanks!
OpenOffice 4.1.3 on Windows 10
Ripley21
 
Posts: 5
Joined: Thu Dec 29, 2016 9:54 pm

Re: Trying to Record a Macro in Writer - can't save Macro

Postby Zizi64 » Tue May 02, 2017 6:08 am

You must WRITE the macros instead of the recording them. Write your macros by usage the API (Application Programming Interface) functions.
Andrew Pitonyak's free books will help you: http://www.pitonyak.org/oo.php
Last edited by Zizi64 on Tue May 02, 2017 4:33 pm, edited 1 time in total.
Tibor Kovacs, Hungary; LibreOffice4.4.7 - Portable versions: LO3.3.0-LO5.3.3 and AOO4.1.3; on Win7x64Prof.
Please, edit the topic's initial post, and add the word "[Solved]" at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 5124
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Trying to Record a Macro in Writer - can't save Macro

Postby Ripley21 » Tue May 02, 2017 2:10 pm

Thanks, I will give that a try.
OpenOffice 4.1.3 on Windows 10
Ripley21
 
Posts: 5
Joined: Thu Dec 29, 2016 9:54 pm

Re: Trying to Record a Macro in Writer - can't save Macro

Postby MrProgrammer » Tue May 02, 2017 5:59 pm

Ripley21 wrote:However, when I try to record a macro for Format > Picture > Width .7"
Change multiple images in writer - PicTool
I've learned recently about this extension. I have no personal experience with it but perhaps it will help and be simpler than learning how to write a macro. I suggest that it will take about two weeks for that, and more if you're not already a programmer.

If this solved your problem please go to your first post use the Edit button and add [Solved] to the start of the title. You can select the green checkmark icon at the same time.
Mr. Programmer
OpenOffice 3.2.0 Build 9483 on Mac OS X 10.9.5.   The locale for any menus or Calc formulas in my posts is English (USA).
User avatar
MrProgrammer
Volunteer
 
Posts: 2928
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: Trying to Record a Macro in Writer - can't save Macro

Postby Ripley21 » Tue May 02, 2017 8:07 pm

Awesome extension, thank you!! I am blown away by the help I've received, and quickly too. Thank you both so very much!
OpenOffice 4.1.3 on Windows 10
Ripley21
 
Posts: 5
Joined: Thu Dec 29, 2016 9:54 pm


Return to Macros and UNO API

Who is online

Users browsing this forum: No registered users and 6 guests