![]() ![]() The extracted data can be stored or viewed: In an Access database file. 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. Content controls in a single active document, in batch of similar content control forms located in a user defined folder, or in Word documents received as attachments to e-mail store in a targeted Outlook message folder. Title and tag the control 'Files' and add three dropdown list entries File A, File B and File C as shown below. Add a dropdown content control to the template as shown below. Currently, only rich text, plain text, and checkbox content controls are supported. Using the dropdown at top right of the code pane, select ContentConrtrolOnExit. ![]() Individual content controls may contain contents such as images, tables, or paragraphs of formatted text. MsgBox "Unable to map the content control."ĬontentControl Object Support and feedback Content controls are bounded and potentially labeled regions in a document that serve as containers for specific types of content. Click within the region where you want to add content control. (wdContentControlText, ActiveDocument.Paragraphs(1).Range)īlnMap = objMap.SetMapping(XPath:="/ns1:coreProperties/ns0:creator") Microsoft introduced content controls with the release of Word 2007. Step 1: Open Word document Open a Word document where you want to add content control. Dim objCC As ContentControlĪctiveDocument.BuiltInDocumentProperties("Author").Value = "David Jaffe" My objective is to use the values entered on the form for FirstName and LastName to help build the file name that is saved. The following example sets the built-in Author document property and adds a new content control to the active document, and then sets the mapping for the control to the value of the built-in document property. Ive created a Word form with plain text content controls named FirstName and LastName. SyntaxĮxpression An expression that returns a ContentControl object. ![]() Returns an XMLMapping object that represents the mapping of a content control to XML data in the data store of a document. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |