How to Edit a Word Custom Field Containing Multiple Lines
Question details
The user needs a way to insert line breaks when editing the value of a Word custom document property.

- Product
- Microsoft Word (Office 365)
- Device & OS
- not provided
- Scenario
- Modifying custom document properties that require multiple lines of text for formatting purposes.
- Observed behavior
- Pressing Enter in the custom property Value box closes the dialog instead of inserting a new line, and existing line breaks may display as square characters.
Create a backup copy of your document before modifying custom properties or running VBA macros to ensure you do not lose any existing metadata.
Use Clipboard to Paste Multi-Line Text
Bypass the Enter key limitation in the dialog box by copying text that already contains line breaks and pasting it into the custom field.
Because standard Windows dialog boxes often map the Enter key to the 'OK' button, typing a line break directly into the Value field can be difficult. The simplest workaround is preparing your text elsewhere.
Open a standard Word document or a simple text editor like Notepad. Type your desired text, pressing 'Enter' wherever you need a line break.
Highlight the entire multi-line text you just typed and press 'Ctrl + C' to copy it to your clipboard.
In your target Word document, click on 'File', navigate to 'Info', click the 'Properties' dropdown, and select 'Advanced Properties'.
Go to the 'Custom' tab, select the property you want to edit, click inside the 'Value' box, press 'Ctrl + V' to paste your multi-line text, and click 'Modify' followed by 'OK'.
Update the Custom Document Property via VBA
Run a simple VBA macro to programmatically assign a multi-line string to your custom document property.
Edit Documents Seamlessly with WPS Office
Avoid complex dialog box limitations when formatting documents. WPS Office provides a streamlined, highly intuitive interface for all your document management needs while maintaining seamless compatibility with Microsoft Word files.
- 1. Download the software: Visit the official WPS Office website and click the free download button.
- 2. Install WPS Office: Run the downloaded installer and follow the simple on-screen instructions to set up the software.
- 3. Open your document: Launch WPS Writer and open your existing Word documents to experience smooth, hassle-free editing.

Frequently Asked Questions
Why does pressing Enter close the custom properties dialog box?
In many Windows software dialog boxes, the Enter key is mapped by default to trigger the 'OK' or 'Submit' button. This is why pressing it closes the window instead of adding a carriage return to the text field.
Why do the line breaks in my custom fields appear as square symbols?
The square symbol represents an unprintable character. When a single-line text box cannot properly render formatting characters like carriage returns or line feeds, it displays them as generic placeholder squares.
Can I use standard keyboard shortcuts for line breaks in this dialog?
While Shift+Enter or Ctrl+Enter works for line breaks within the main Word document canvas, these shortcuts are typically not supported inside the Advanced Properties dialog boxes. Copying and pasting text is the most reliable workaround.




