Amongst the links I found, this and this appear to be similar to my question. Trying to implement the answers turned out futile!
I get an application defined error with the following code.
I'm looking to create a dynamic range with this code:
Dim strFormula1 As String
Dim d As Range
strFormula1 = "control!:$B$3:" & Sheet5.Range("b2").End(xlDown).Address()
Set d = Sheet1.Range("K3:K20000")
With d.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, _
Formula1:="='" & strFormula1 & "'"
End With