Add Text After a Word Content Control in a Table Cell
Question details
Add text after a content control in a Word table cell without placing the new text inside the control.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Editing a table cell manually or automating Word from another application.
- Observed behavior
- Text intended to follow the content control is inserted inside it instead.
Identify the content control and confirm which table cell contains it. For the VBA method, check that there is a suitable character after the control to move past without crossing the cell boundary.
Move a Word range past the content control before inserting text
Use this approach when inserting text with a Word macro or automating Word from another application.
A range collapsed at the end of a content control can still be inside the control. Extend the range by one character first, then collapse it to its end.
Extending the range moves the insertion point past the next character. Make sure that character is within the cell and that placing text after it is appropriate.
In Word, place the selection in the table cell containing the content control. The following example uses the first content control in that cell.
Open the VBA editor and run this macro: Sub AddTextAfterControl() Dim oCC As ContentControl Dim oRng As Range Set oCC = Selection.Cells(1).Range.ContentControls(1) Set oRng = oCC.Range oRng.End = oRng.End + 1 oRng.Collapse 0 oRng.Text = "text after content control" End Sub
When using late binding from another application, declare the Word content control and range variables as Object. Qualify Selection through your Word application object, such as owrd.Selection, and use 0 for wdCollapseEnd.
Return to the Word table cell and confirm the new text appears outside the content control at the intended position.

Move the cursor outside the content control manually
Use the keyboard when editing the document directly in Word.
Edit Word documents with WPS Writer
WPS Office is a free, lightweight alternative with a familiar interface for opening and editing Word documents. Its format support helps you move existing files into WPS Writer, though it does not fix Word-specific content control automation.

Frequently Asked Questions
Why does my text appear inside the content control?
A Word range collapsed at the end of a content control may still be within its boundary. Extend the range past the control before collapsing it, and verify the resulting position before inserting text.
What does Collapse 0 mean in Word VBA?
The numeric value 0 represents wdCollapseEnd. Calling oRng.Collapse 0 collapses the range to its end and is useful when Word is controlled through late binding.
How do I use this code from another application?
Declare Word objects such as oCC and oRng as Object, access the selection through your Word application object, and use numeric Word constants when the Word type library is not referenced.
Can I always add one to the range end in a table cell?
No. Adding one moves past the next character, which may be existing text or a cell-ending character. Inspect the cell and choose a safe insertion position before running the code.




