I am endeavouring to create and store a dropdown list in a worksheet cell as opposed to using the traditional excel 2007 methodology. The list currently contains seven items. I have played with a few lines of code and cannot seem to get it to work. Also, I would like to be able to wrap the list of list elements in more than one line of code to reduce code width. One of the pieces of code that I have attempted is;
Any help would be very much appreciated.
Rick
Code:
With Range("A5").Validation
.Delete
.Add Type:=xlValidateList, Operator:=xlBetween, Formula:="ListItem1," & _
"ListItem2," & _
"ListItem3," & _
"ListItem4," & _
"ListItem5," & _
"ListItem6," & _
"ListItem7"
End With
Any help would be very much appreciated.
Rick