I use the following short macro to assign data validation as a list of characters:
Sub DVList() With ActiveCell.Validation .Delete .Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _ xlBetween, Formula1:="a,b,c,d" .IgnoreBlank = True End With End Sub
The macro works.
I want to change the macro to include a comma in the list. I do not see how to do this because the comma is a list separator.
Am I stuck to use sheet cells to create a list?
source share