djwebb1969 wrote: ↑Wed Mar 12, 2025 6:36 pm
What is the correct syntax?
You have an example of a macro which uses dispatcher services. This type of macro comes from using the Tools → Macros → Record feature.
The syntax and semantics of dispatcher macros are not documented. You have two choices.
The simplest method is to
record four macros which use Insert → Special Character. Recording simple macros to perform one action will take less than a minute. The characters you want are probably:
• U+2018 Left Single Quotation Mark
• U+2019 Right Single Quotation Mark
• U+201C Left Double Quotation Mark
• U+201D Right Double Quotation Mark
When you record macros, you don't need to learn about macro syntax because OpenOffice creates the macro for you. Do not attempt to understand or modify recorded macros. Just use what you're recorded.
You could also
write your macros and not use the macro recording feature. The syntax for that is documented but learning how to write macros is difficult. Expect to spend
at least a week to write your first macro, more if you're not already a programmer.
OpenOffice.org Macros Explained
Instead of using a macro, I recommend using the
AutoText feature of Writer to insert characters in Writer. See Help → OpenOffice Help → Index → AutoText.
If this solved your problem please go to your first post use the Edit ✏️ button and add [Solved] to the start of the Subject field. Select the green checkmark icon at the same time.
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.6, iMac Intel. The locale for any menus or Calc formulas in my posts is English (USA).