To exit Mail Merge Preview Mode in LibreOffice Writer, click the
Close Preview button located on the Mail Merge toolbar. This action immediately returns you to the standard document editing view while preserving all merge fields and data connections. If the toolbar is not visible, enable it via the View menu to ensure you can access this control easily.
When you are working with a mail merge document, you often switch between designing the layout and verifying that the data populates correctly. LibreOffice provides a specific preview mode that allows you to cycle through records from your database or CSV file without permanently altering the source data. However, staying in this mode prevents normal editing features like typing new text or adjusting paragraph styles. Many users get stuck in this state because they do not realize there is a dedicated toggle to leave it. Understanding how to properly exit this mode ensures your workflow remains smooth and your document remains editable for final touches before printing or saving as individual files.
Locating the Mail Merge Toolbar
The primary method for exiting preview mode relies on a specific toolbar that appears when you initiate a mail merge. If you have already started the merge process by selecting
Tools > Mail Merge Wizard, this toolbar should be automatically docked near the top of your window. Look for a button labeled
Close Preview. It typically has an icon resembling a document with a red "X" or similar indicator showing the end of the preview session. Clicking this button is the direct command to stop cycling through records and return to the main editor.
If you cannot see the Mail Merge toolbar, it may have been accidentally closed. To bring it back, go to the
View menu in the menu bar. From the dropdown list, select
Toolbars. In the submenu, check the box next to
Mail Merge. The toolbar will reappear, giving you access to the
Close Preview button. This step is crucial if you are using a customized interface where toolbars are minimized or hidden by default.
Using the Menu Bar Alternative
For users who prefer keyboard shortcuts or menu navigation over clicking icons, LibreOffice offers an alternative path. While in Preview Mode, look at the
View menu again. You will notice that some options become active or change context depending on the current mode. Specifically, you can navigate to
View > Toolbars > Mail Merge if it was previously unchecked. Once the toolbar is visible, use the mouse to click the close preview button. There is no direct single-key shortcut like Escape to exit this specific mode in all versions of LibreOffice, so relying on the UI elements is the most reliable method.
It is important to note that pressing the
Escape key does not reliably exit Mail Merge Preview Mode in recent versions of LibreOffice. Some users might try this expecting it to cancel the operation, but it often results in no action or simply deselects the current record without returning you to edit mode. Therefore, avoiding the Escape key for this specific task prevents confusion and wasted time. Always use the explicit
Close Preview command to ensure the application knows you want to resume editing.
Verifying the Exit
After clicking the
Close Preview button, observe the changes in your document window. The record selector, which usually shows numbers like "1 of 50" indicating the current database row, should disappear. The document should now display the merge fields (such as
{MERGEFIELD Name}) rather than actual data values. This confirms that you are back in the standard editing environment. You can now insert new paragraphs, change fonts, or adjust margins without interference from the merge engine.
If you find that the merge fields are still showing data instead of the field codes, ensure that your display settings are correct. Go to
Tools > Options > LibreOffice Writer > Formatting Aids and check the option to show field codes. This helps distinguish between the static template and the dynamic data. Exiting preview mode does not change these display settings, so you may need to toggle them separately if you want to see the underlying structure of your document.
Common Issues and Troubleshooting
Sometimes, users report that the
Close Preview button is grayed out or unresponsive. This usually happens if the mail merge connection to the data source has been broken or if the data source file has been moved or deleted. In such cases, you must reopen the data source by going to
Tools > Mail Merge Wizard and re-selecting your database file. Once the connection is restored, the toolbar buttons should become active again.
Another common issue is accidental modification of the document during preview. Remember that while in preview mode, any changes you make are applied to the first record only and are not saved to the database. Always exit preview mode before making significant edits to ensure your changes apply to the master template correctly. For more complex formatting issues related to mail merges, such as decimal place errors, refer to our guide on
Mail Merge Decimal Places Getting Messy: A Solution.
Frequently Asked Questions
Does pressing Escape exit Mail Merge Preview Mode?
No, pressing the Escape key does not reliably exit Mail Merge Preview Mode in LibreOffice Writer. It may cancel other operations but leaves you in the preview state. You must use the Close Preview button on the toolbar.
Where is the Close Preview button if I don't see it?
If the Mail Merge toolbar is missing, go to View > Toolbars and select Mail Merge from the list. This will make the toolbar appear, revealing the Close Preview button among other merge controls.
Can I save the merged documents while in Preview Mode?
No, you cannot directly save individual merged documents while in Preview Mode. You must exit preview mode first, then use the Mail Merge Wizard or the Save Individual Documents feature to generate the final files.
Why do my merge fields show data instead of codes after exiting?
This is a display setting controlled by Tools > Options > LibreOffice Writer > Formatting Aids. Unchecking "Show field codes" will display the data values. Checking it will show the underlying code syntax.
Is it safe to edit the document while in Preview Mode?
Editing in Preview Mode is risky because changes may only apply to the current record view and not the master template. It is best practice to exit preview mode before making structural or stylistic changes to the document.