View Single Post
 
Old 04-13-2019, 08:45 PM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,142
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

The following should do it
Code:
Private Sub UserForm_Initialize()

Dim oTable As Table
Dim i As Long, m As Long
Dim oData As Range
    Set oTable = ActiveDocument.Tables(1)
    i = oTable.Rows.Count
    For m = 1 To i
        Set oData = oTable.Cell(m, 2).Range
        oData.End = oData.End - 1
        If oData.Text <> "" Then ItemComboBox.AddItem oData.Text
    Next m
    ItemComboBox.AddItem "[Select Item]", 0
    ItemComboBox.ListIndex = 0
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote