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. ' text remains Word removes the items in the list. I am using a content control so that I can control the spacing around the text. I would 'like' to control the font and size, if possible. They must be allowed to use bullets, numbering or whatever other formatting necessary. Several of the fields must be Rich Text (formatting allowed). ' a drop-down it is a text content control. I am attempting to create a form for employees to fill in. ' After running the above code, the content control is no longer In Word 2010/2007, when content controls are bounded using a group or rich text control, the content controls within the boundaries will no longer display their title tabs when the focus is in the control. ' Notice that the content control is a drop-down list. ' Switch to view the new content control in the active document. ObjCC.SetPlaceholderText Text:="My Favorite Animal" Set objCC = (Type:=wdContentControlDropdownList) The following example inserts a drop-down list content control and then changes it to be a rich-text content control. The following example inserts a new date content control that contains the current date and then changes it to be a text content control. In this case, Word raises a run-time error. For example, if you have a rich-text content control that contains formatted text, you may not be able to change the control to be a plain-text content control. Depending on the contents of a content control, you may not be able to change the content control type.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |