Excel Friends, I have the code below, after the user makes the selection, just before running a macro in another module, please, what is the code to read the selection made by the user. I mean the VBA code to read/store in a String Variable the current content of the combo box just before running another macro that need that value as an input. Thanks!
Private Sub UserForm_Initialize()
Dim cLoc As Range
Dim ws As Worksheet
Set ws = Worksheets("EXTENSIONS")
For Each cLoc In ws.Range("EXTList")
With Me.cboLocation
.AddItem cLoc.Value
End With
Next cLoc
Me.cboLocation.Value = "Select"
End Sub
Private Sub UserForm_Initialize()
Dim cLoc As Range
Dim ws As Worksheet
Set ws = Worksheets("EXTENSIONS")
For Each cLoc In ws.Range("EXTList")
With Me.cboLocation
.AddItem cLoc.Value
End With
Next cLoc
Me.cboLocation.Value = "Select"
End Sub