Does anyone know if it is possible to generate a dynamic dropdown-list in a cell by calling a VBA function passing the contents of another cell
Something along the lines of:-
I haven't yet found a Reference that will give me an object something like {DropDownList} do I have to use a Collection and manipulate that?
Thanks in anticipation![[love] [love] [love]](/data/assets/smilies/love.gif)
J.
![[ponder] [ponder] [ponder]](/data/assets/smilies/ponder.gif)
Something along the lines of:-
Code:
=GenerateList(C4)
Code:
Function GenerateList(Byval strClass As String) As [DropDownList]
Dim lbxDropDownList As DropDownList
Select Case strClass
Case "A"
lbxDropDownList.Add "X"
Case "B"
lbxDropDownList.Add "Y"
Case "C"
lbxDropDownList.Add "Z"
End Select
set GenerateList = lbxDropDownList
End Function
I haven't yet found a Reference that will give me an object something like {DropDownList} do I have to use a Collection and manipulate that?
Thanks in anticipation
![[love] [love] [love]](/data/assets/smilies/love.gif)
J.
![[ponder] [ponder] [ponder]](/data/assets/smilies/ponder.gif)