Kind of a long title, but as it says I am trying to add a data validation list to cell D5 with the formula referencing a named range that is typed into cell C5. This is what I have
Range("D5").Select
With Selection.Validation
.Add Type:=xlValidatList, Formula1:=Range("C5").Value
And I keep getting Application-defined or object-defined error with that line highlighted. I have tried dimmimg rng as a string and having that be the C5 value then having the formula:=rng with the same results. How can I fix this?
Range("D5").Select
With Selection.Validation
.Add Type:=xlValidatList, Formula1:=Range("C5").Value
And I keep getting Application-defined or object-defined error with that line highlighted. I have tried dimmimg rng as a string and having that be the C5 value then having the formula:=rng with the same results. How can I fix this?