Hi David,
That is a Content Control. New feature in Word 2007.
To add you own Content Control to your document manually, you can:
1. Press the Office Button in upper left corner of Word 2007 window, then
choose Word Options.
2. In the Word Options dialog, choose Popular tab.
3. In Top options for working with Word, make sure the "Show Developer tab
in the Ribbon" is checked.
4. Go back to the document, select the Developer tab.
5. In the Controls group of the Developer tab, you'll see controls like
Rich Text, Combo Box, Date Picker...
6. Click on one of the controls, it will be inserted into your document. In
your case, the Drop-Down List control is what you want.
Then you can select the control, and click the Properties button on the
ribbon to customize it.
You can also add Content Controls using Word OM. Here is the VBA sample:
Selection.Range.ContentControls.Add (wdContentControlDropdownList)
Selection.ParentContentControl.LockContentControl = True
Selection.ParentContentControl.DropdownListEntries.Clear
Selection.ParentContentControl.DropdownListEntries.Add Text:="Option 1", _
Value:="Option 1"
Selection.ParentContentControl.DropdownListEntries.Add Text:="Option 2", _
Value:="Option 2"
Selection.ParentContentControl.DropdownListEntries.Add Text:="Option 3", _
Value:="Option 3"
You can use the OM in a similar way in your add-in code so your add-in can
have access to the Content Controls at runtime.
If you have any further questions regarding this issue, please feel free to
post here.
Regards,
Jie Wang (
[email protected], remove 'online.')
Microsoft Online Community Support
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.
Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business days is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.