Hi,
I need some help adding Data Validation in VBA. I would like it to reference a whole column in a separate worksheet but I get an error in the formula1 line. How do I fix this? I also tried ".Range("I:I")" but that also doesn't work.
Sub DataValidation()
Sheets("Results").Range("C15").Select
End Sub
I need some help adding Data Validation in VBA. I would like it to reference a whole column in a separate worksheet but I get an error in the formula1 line. How do I fix this? I also tried ".Range("I:I")" but that also doesn't work.
Sub DataValidation()
Sheets("Results").Range("C15").Select
With Selection.Validation
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:=xlBetween, _
Formula1:=Sheets("Pending Transactions Count").Range("$I$2:$I$300")
.IgnoreBlank = True
.InCellDropdown = True
.InputMessage = "Select which month-end to catch transactions for"
End With
End Sub