Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 06-13-2019, 09:02 AM
gmaxey gmaxey is offline UserForm with Combo Box from data in table within template Windows 10 UserForm with Combo Box from data in table within template Office 2016
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,617
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
 

Tags
combo box, user forms



Similar Threads
Thread Thread Starter Forum Replies Last Post
Letter Template /w combo box list etruz Word 4 10-31-2018 05:16 AM
Copy excel userform data to a word template Farnkf1970 Excel Programming 1 10-31-2017 01:35 AM
Pasting a table with combo boxes to a new document looses the combo box bobsut@enviro-consult.com Word 1 01-03-2017 01:29 PM
userform to enter multiple lines of data in template callasabra Word VBA 0 06-27-2014 05:29 PM
Forms - Combo Box Linking data tomkat Word 1 04-23-2010 06:28 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:57 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft