View Single Post
 
Old 04-17-2019, 05:50 AM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,106
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 of
Default

Is this a userform? You can loop through the controls collection e.g.

Code:
Dim i As Integer
Dim oCtrl As Control
    For Each oCtrl In Controls
        If TypeName(oCtrl) = "ComboBox" Then
            If oCtrl.value = "Pickup" Then
                'do stuff with oCtrl e.g.
                MsgBox oCtrl.Name
                Exit For
            End If
        End If
    Next oCtrl
__________________
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