Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback. Set objTemplate = ActiveDocument.AttachedTemplate Sub InsertContentControlIntoBuildingBlock() Download a Team Work Plan Template for Excel Microsoft Word Google Sheets. The following code inserts a content control into the active document, and then adds the content control to the collection of building blocks in the template attached to the active document. The word document is saved with the proper file name. I enter a first name and a last name, and click the Save button. The Word JavaScript API 1.7 requirement set was released to production and is now available. I have inserted Repeating Content Controls, which do allow the user to easily click on a plus sign to add another row while the document is locked. strFilename strFirstName & ' ' & strLastName & ' MEDAlert Medical Information' & '.docx'.
![create content control microsoft word create content control microsoft word](http://addbalance.com/word/images/mappedControlsMaxeyEnhancedDP.png)
Click within the region where you want to add content control.
![create content control microsoft word create content control microsoft word](http://addbalance.com/word/images/2013PropertiesAdvanced.png)
![create content control microsoft word create content control microsoft word](https://i.ytimg.com/vi/OlQINNDMS54/maxresdefault.jpg)
This topic shows how to insert a content control into a building block, which users can then insert into their documents. I have been asked to make the tables expandable - so that while the document is locked except for form field editing, the user can add additional identical rows of blank form fields. I have a document which contains contents controls to gather various types of information (i.e., name, address, age, etc) in various sections/pages of the document. Controlling the size of a Content Control in Word. Step 1: Open Word document Open a Word document where you want to add content control. You can create building blocks that contain content controls, or you can create content controls that use building blocks to present rich content selections to the user. Building blocks and content controls are extremely flexible.