Save content control microsoft word3/31/2024 ![]() 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. Returns a ContentControls collection that represents all the content controls in a document. then the data move but content control location is shifted at bottom of text, Can any one look in this issue. Range: Optional: Variant: Specifies where in the active document to place the content control. Consider below steps to reproduce issue : one content control is added and data from content control is selected and alligned using ruler. If omitted, Microsoft Word inserts a rich-text content control. ObjCC.SetPlaceholderText, , "Select your favorite animal "ĬontentControls Collection Support and feedback Specifies the type of content control to insert into the active document. Set objCC = (wdContentControlDropdownList) The following example creates a new drop-down list content control and adds several items to the list. You can add content controls programmatically to your document at run time by using methods of the Controls property of the ThisDocument class in your project. Add content controls at run time in a document-level project. In this case, you can either move the insertion point or use the Range parameter to specify a location within the document. In the Controls group, click the icon for the content control that you want to add. If the insertion point or current selection is inside a content control of a different type, this method raises an error. ![]() You can nest content controls only within rich-text content controls, building block gallery content controls, and group content controls. If omitted, Word places the content control at the position of the insertion point or replaces the current selection. Specifies where in the active document to place the content control. ![]() Specifies the type of content control to insert into the active document. SyntaxĮxpression An expression that returns a ContentControls object. Adds a new content control, of the type specified, into the active document and returns a ContentControl object that represents the new content control. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |