![]() ![]() 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. ObjContentControl.BuildingBlockType = wdTypeEquations To open the Quick Part Gallery, on the Insert tab, in the Text group, click Quick Parts. You can use the Building Blocks Organizer to find or edit a building block. AutoText is a common type of building block that stores text and graphics. Add(wdContentControlBuildingBlockGallery) These reusable blocks of content are also called building blocks. Set objContentControl = ActiveDocument.ContentControls _ Make sure you click on the 3 little dots on the left side so the entire textbox is selected. Now, click on the first textbox (the one where text is to be copied too). ![]() From the developer toolbar, drop in 2 text boxes from the controls tab. The following code sample instantiates a building block gallery content control and then adds a building block to the content control. In word, add the developer toolbar to the ribbon. You can only use the following building block types within a building block gallery content control:įor more information about content controls, see Working with Content Controls. The WdBuildingBlockTypes enumeration contains each building block type. Optionally, these content controls can be linked to. Then you can add content controls for elements such as check boxes, text boxes, date pickers, and drop-down lists. In the Controls section, click on the Date Picker Content Control Icon. For this tutorial, we will show you how to use date picker content control. The Controls section shows 10 types of Content Controls that you can use in your document. To do this, you will start with baseline content in a document, potentially via a form template. In the top menu bar, click on the Developer tab to change the ribbon. Word includes a library of document building blocks that users can choose from to insert into a document.Ī ContentControl object (Word) object with a ContentControl.Type property (Word) property value of wdContentControlBuildingBlockGallery specifies a content control that can contain document building blocks. In Word, you can create a form that others can fill out and save or print. A document building block is a predesigned piece of content, such as a cover page or a header or footer. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |