![]() 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. ' a drop-down it is a text content control. Please follow the instructions step by step. I have inserted a drop down list and I would like to be able to automatically display the award critera and. The below VBA code can help you create a dependent drop-down list in a Word document. ' After running the above code, the content control is no longer Hi, I have created a nomination form that includes several different award categories. ' Notice that the content control is a drop-down list. ' Switch to view the new content control in the active document. However, when I try to create a new document and put in text in the original content control, it does not populate in the copied fields. Home - Paste - Paste Special - Paste Link - HTML Link. Hover, right click, copy content control. Note: You can print a form that was created using content controls, but the boxes around the content controls. Create plain text content control for Company Name. Open design mode (Developer tab>Controls>Design Mode) to set the desired placeholder text. You can set properties on controls once inserted. Using the content control properties dialog, you can set the properties of the control (e.g., title and tag), the type of calendar that is displayed, and specify the date format. To remove a content control, select the control and press Delete. ObjCC.SetPlaceholderText Text:="My Favorite Animal" Go to Developer, and then choose the controls that you want to add to the document or form. 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. Content controls are Microsoft Word entities that act as containers for specific content in a document. In this case, Word raises a run-time error. Using content controls to structure a document. ![]() 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 |