ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Validation from a list (https://www.excelbanter.com/excel-programming/300007-validation-list.html)

bob

Validation from a list
 
Is there any way to include items in a list to be
validated that include commas (delimeter)?

No Name

Validation from a list
 
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


All times are GMT +1. The time now is 12:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com