Validation from a list

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

Is there any way to include items in a list to be
validated that include commas (delimeter)?
 
You can include commas if the range is drawn from
worksheet cells. For example, suppose C2=Phil, Don
C3=Sally,Mary C4=Jim, Jane
The following sub creates a Data...Validation...List in
the active cell with three items, each including an
embedded comma:

Sub ValidateMe()
ActiveCell.Validation.Add Type:=xlValidateList,
Formula1:="=$C$2:$C$4"
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top