View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Nigel[_27_] Nigel[_27_] is offline
external usenet poster
 
Posts: 25
Default data validation syntax

im having trouble figuring out what is wrong with this code....
it should use the range set to the variable ProdRange as the source for
the data, and putting the drop down list in cell A3.....

Dim ProdRange As Range
Set ProdRange = Range("a7", "a" & Range("EndOfProducts").Offset(-2,
0).Row)
Range("a3").Validation.Add xlValidateList, , , "=" &
ProdRange.Address

anyone know what im doing wrong?