Document Editing Problems

Add Text After a Word Content Control in a Table Cell

Camila MilosovichCamila Milosovich Nov 22, 2026 869 views

Question details

Add text after a content control in a Word table cell without placing the new text inside the control.

Add Text After a Word Content Control in a Table Cell
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the cell

In Word, place the selection in the table cell containing the content control. The following example uses the first content control in that cell.

2
Run the macro

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

3
Adapt external automation

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.

4
Check the result

Return to the Word table cell and confirm the new text appears outside the content control at the intended position.

Move a Word range past the content control before inserting text
Watch the cell boundary: Do not blindly extend the range when the control is at the end of the cell. Moving past a cell-ending character can put the insertion point outside the intended cell.
Free Microsoft Office alternative

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.

Edit text and tables in WPS WriterOpen and save Microsoft Word DOCX filesUse a familiar document-editing interfaceWork with existing documents in a lightweight office suite
microsoft office alternative - wps office

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.