Hi all,
So I'm looking to set range variables equal to corresponding lists to create a data validation drop down.
I want the data validation cells on my homepage sheet, titled "Input Sheet" and the data lists on a hidden sheet titled "Data Validation".
Here's my current code:
This is just a small portion of the code, and I repeat this process for 2 other data validation lists.
The code works fine, with the exception of the range reference. It pulls the range from the input sheet instead of the data validation sheet.
Any help is much appreciated. Thanks!
So I'm looking to set range variables equal to corresponding lists to create a data validation drop down.
I want the data validation cells on my homepage sheet, titled "Input Sheet" and the data lists on a hidden sheet titled "Data Validation".
Here's my current code:
Code:
Dim Rng1 as range
Sheets("Data Validation").Select
Set Rng1 = Sheets("Data Validation").Range("A1", Range("A1").End(xlDown))
Sheets("Input Sheet").Select
With Range("U13").Validation
.Delete
.Add Type:=xlValidateList, Formula1:="=" & Rng1.Address & ""
End With
This is just a small portion of the code, and I repeat this process for 2 other data validation lists.
The code works fine, with the exception of the range reference. It pulls the range from the input sheet instead of the data validation sheet.
Any help is much appreciated. Thanks!