Hello all,
I'm trying to set up a combo box to use a list of values entered in to another worksheet. I have named the worksheet StoreType, and I'm using the following code:
When I open the UserForm and click on the drop down arrow, there are no values. I've also gone in to Define Name section within Excel, and have added the following information:
Name: StoreType
Scope: StoreType
Refers to: =Offset(StoreType!$A$2,0,0,CountA(StoreType!$A$A)-1,1)
Any assistance with this is greatly appreciated. Thank you.
D.
I'm trying to set up a combo box to use a list of values entered in to another worksheet. I have named the worksheet StoreType, and I'm using the following code:
VBA Code:
Private Sub StoreType_Change()
Dim sType As Range
Dim WS As Worksheet
Set WS = Worksheets("StoreType")
For Each sType In WS.Range("StoreType")
With Me.StoreType
.AddItem sType.Value
.List(.ListCount - 1, 1) = sType.Offset(0, 1).Value
End With
Next sType
End Sub
Name: StoreType
Scope: StoreType
Refers to: =Offset(StoreType!$A$2,0,0,CountA(StoreType!$A$A)-1,1)
Any assistance with this is greatly appreciated. Thank you.
D.