Share via

VBA, Create DropdownList Content Control

Anonymous
2014-06-27T14:02:39+00:00

When I create a dropdown list content control using the developer tab, the control has a first entry "Choose an item." I can then add additional items.  Document users can select items from the list and if they change their mind they can return to the "Choose an  item" entry which returns the placeholder text to the control.

If a dropdown list content control is created using vba (even a recorded macro of inserting one from the developer tab), the control is missing this first entry "Choose an item" and displays "No entries" instead.  Again, I can add dropdown list members.  However in these cases  after the user makes an initial selection,  there is apparently no way to return the control to the state where no item is selected and the control displays placeholder text.

Does anyone no how to create a dropdownlist CC using VBA such that the first entry is 'Choose an item" and clicking it will return the control to showing placeholder text?

Thanks.

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2014-06-27T21:10:00+00:00

    Probably not ideal, but since in the current case the code I'm using to insert the dropdown list content controls is a part of a template add-in, I decided to create and store a buildingblock defined as a dropdownlist with the "Choose an item" entry.  So instead of using VBA to insert the content control,  I'm using VBA to insert the buildingblock.

    Was this answer helpful?

    0 comments No comments