View Single Post
 
Old 06-13-2019, 09:02 AM
gmaxey gmaxey is offline Windows 10 Office 2016
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,601
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

In the ThisDocument module:

Code:
Private Sub Document_ContentControlOnEnter(ByVal ContentControl As ContentControl)
Dim lngIndex As Long

  Select Case ContentControl.Title
    Case "Demo"
      With ContentControl.DropdownListEntries
        For lngIndex = .Count To 2 Step -1
          .Item(lngIndex).Delete
        Next
        .Add "Apples", "Apples"
        .Add "Blueberries", "Blueberries"
        .Add "Cherries", "Cherries"
      End With
  End Select
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote