I am editing a Word document. I want to insert a big block of XML in a cell of a table.

I want to insert a scrollable text block. How can I do that ?

This quest looks simple, but I have not found any way to achieve that.

I have Office Pro Plus 2010.


Solution 1:

You can use an ActiveX Textbox to add a dynamically editable and scrollable text box to your document:

  1. On the Word Ribbon, under tab Developer, click icon Legacy Tools (or press ALT+ L, N). A drop-down menu appears.

  2. From drop-down menu, under section ActiveX Controls, click the Text Box (ActiveX Control) icon (or press ALT+L, N, T). Word creates a text box field at the cursor position. By default, the text box is opened in the design mode. You can expand the control to the desired size.

  3. To change the properties of the text box, select the text box and then click Properties (ALT+L, L). The Properties sheet appears. You will want to change the EnterKeyBehavior, MultiLine and ScrollBars properties.

  4. Exit design mode by clicking on the button under the Developer tab and you should now have an editable and scrollable multi-line text box in your document.