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!

How to associate the macro with a keyboard shortcut

  1. In LibreOffice Writer, open the menu Tools > Customize…
  2. Click on the Keyboard tab
  3. In the Category tree, scroll down and expand Application Macros by clicking on the arrow
  4. Under My Macros > Standard, select
  5. In the Function list, select the Reformat macro
  6. Now, in the Shortcut Keys list, choose a shortcut that you want to associate with this macro
    • At One-Pager Chords, we recommend the Shift+Ctrl+F combination for the Reformat macro, even though it’s already assigned by default to Repeat Search
  7. Click on the Assign button
  8. Click on the OK button to close the Customize dialog

How to create a toolbar icon to run the macro

  1. In LibreOffice Writer, open the menu Tools > Customize…
  2. Click on the Toolbars tab
  3. In the Category dropdown, select Macros
  4. In the Available Commands tree, click on the Application Macros arrow to hide its content
  5. Under My Macros > Standard > OPC, select the Reformat macro
  6. Now, in the Target dropdown, choose in which toolbar you want to add this icon (e.g. the Formatting toolbar)
  7. 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]
  8. Once you’ve selected the place where you want to put the icon, click on the > button to add the Reformat macro to the list of Assigned Commands
  9. Click on the Modify Ė… button and select Change Icon…
  10. Select an icon that suits you
  11. Click on the OK button to close the Change Icon dialog
  12. Click on the OK button to close the Customize dialog