How to Fix Word Content Control Runtime Error 5844
Question details
The user encounters Runtime Error 5844 when attempting to insert multiline text into a plain-text content control via a Word UserForm.
- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Using a VBA UserForm macro to insert multiline text into a plain-text content control that allows new lines.
- Observed behavior
- A runtime error 5844 is triggered, preventing the macro from successfully inserting the text into the content control.
Before modifying your document's developer controls or running the VBA macro again, save a separate backup copy of your Word document to prevent accidental data loss during troubleshooting.
Place the Content Control on a Dedicated Line
Runtime Error 5844 often occurs if the plain-text content control is placed inline with other text. Moving it to its own paragraph resolves the conflict.
Plain-text content controls designed to accept multiline text can conflict with surrounding inline formatting. Isolating the control ensures the UserForm can inject line breaks safely.
Click directly on the plain-text content control in your Word document.
Press the Enter key before and after the content control to move it onto its own dedicated line.
Ensure there is no other text, space, or object on the same line as the content control, then test your UserForm again.
Enable Carriage Returns in Properties
Verify that the content control is explicitly permitted to accept multiple paragraphs.
Recreate the Corrupted Content Control
Copying and pasting content controls between documents can carry over corrupted properties. Recreating the control from scratch provides a clean slate.
Experience Seamless Document Editing with WPS Office
If complex VBA runtime errors and macro limitations in Microsoft Word are slowing down your workflow, consider switching to WPS Office. It provides a lightweight, highly compatible, and user-friendly environment that handles advanced document formatting with ease.
- 1. Download the installer: Visit the official WPS Office website and download the free installer for your operating system.
- 2. Install and launch: Run the installation file, follow the quick setup prompts, and open WPS Writer.
- 3. Open your documents: Drag and drop your existing Word documents directly into WPS Office to continue editing without formatting loss.

Frequently Asked Questions
Why do I get Runtime Error 5844 in Word VBA?
This error typically occurs when a VBA macro or UserForm attempts to insert text that violates the properties or placement rules of a content control, such as injecting multiline text (with carriage returns) into an inline plain-text control.
What is a plain-text content control in Word?
A plain-text content control is a dedicated document field that restricts rich formatting. It allows users to enter standard text without applying complex styles like varying fonts, bold, or italics within the same field.
How do I enable the Developer tab in Word to check control properties?
Go to File > Options > Customize Ribbon. In the right-hand pane, check the box next to 'Developer', then click OK. The Developer tab will now appear on your main ribbon.
Does copying and pasting content controls cause document corruption?
Yes, pasting content controls between different documents or from older document versions can sometimes carry over invisible corrupted properties, which may lead to stubborn VBA runtime errors. Recreating the control is the most effective fix.




