A better way to run the macro
The process of running a macro described in the previous page is a bit cumbersome. After running a macro several times, it even becomes quite annoying!
We highly recommend associating the macro to either a keyboard shortcut or a toolbar icon (whichever works best for you). This way, you can run the macro in just one step!
Tip
Just know that a keyboard shortcut is warmly recommended because, not only because it’s easier to setup but also because it’s very convenient to use.
How to associate the macro with a keyboard shortcut
- In LibreOffice Writer, open the menu
Tools>Customize⦠- Click on the
Keyboardtab - In the
Categorytree, scroll down and expandApplication Macrosby clicking on the arrow - Under
My Macros>Standard, select - In the
Functionlist, select theReformatmacro - Now, in the
Shortcut Keyslist, choose a shortcut that you want to associate with this macro- At One-Pager Chords, we recommend the
Shift+Ctrl+Fcombination for theReformatmacro, even though it’s already assigned by default toRepeat Search
- At One-Pager Chords, we recommend the
- Click on the
Assignbutton - Click on the
OKbutton to close theCustomizedialog
Congratulations!
Your keyboard shortcut is now created š„
Tip
You can use the same method to assign keyboard shortcuts with the other super convenient One-Pager Chords macros.
Just select the name of that macro instead of Reformat in the above steps.
How to create a toolbar icon to run the macro
Important
The below method only works if you’re using one of the standard toolbars, i.e. it doesn’t work with the tabbed a.k.a. “ribbon” toolbar.
If you prefer to stick with the ribbon interface, don’t hesitate to create a keyboard shortcut instead.
- In LibreOffice Writer, open the menu
Tools>Customize⦠- Click on the
Toolbarstab - In the
Categorydropdown, selectMacros - In the
Available Commandstree, click on theApplication Macrosarrow to hide its content - Under
My Macros>Standard>OPC, select theReformatmacro - Now, in the
Targetdropdown, choose in which toolbar you want to add this icon (e.g. theFormattingtoolbar) - In the list of
Assigned Commands, figure out next to which icon you want to put yours and click on it- You can even create a dedicated section for One-Pager Chords macros by clicking on
[Insert]>[Insert Separator]
- You can even create a dedicated section for One-Pager Chords macros by clicking on
- Once you’ve selected the place where you want to put the icon, click on the
>button to add theReformatmacro to the list ofAssigned Commands - Click on the
Modify Ėbutton and selectChange Icon⦠- Select an icon that suits you
- Click on the
OKbutton to close theChange Icondialog - Click on the
OKbutton to close theCustomizedialog
Congratulations!
You should now see your icon in the toolbar š
Tip
You can use the same method to create toolbar icons for the other super convenient One-Pager Chords macros. Just select the name of that macro instead of Reformat in the above steps.