I am creating a data validation list using the following method:
sDataValidationList = sDataValidationList & wksCalculation.Cells(r, lActivityNoColumn).value & ","
Then I apply it to a cell using:
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:=xlBetween, Formula1:=s
This works well most of the time, but when any of the wksCalculation.Cells(r, lActivityNoColumn).value
contain commas, then those strings are split by the data validation list and each comma separated part of the string is shown as a separate item.
How can I modify my code to be useful also when some of the values that go into the data validation list have commas in them?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…