I have he following command in my program:
Sheets("PLN").Range("F2:F30000").Find(what:=hold_key).Select
I've seen where it's possible to use a literal after the what:= as for instance Find(what:="Rose").Select - however, I want to be able to use a variable - as I have in the command where hold_key is the variable.
Is this possible? I keep getting an error "object variable or with block variable not set" I have hold_key setup in a dim statement as a string
Sheets("PLN").Range("F2:F30000").Find(what:=hold_key).Select
I've seen where it's possible to use a literal after the what:= as for instance Find(what:="Rose").Select - however, I want to be able to use a variable - as I have in the command where hold_key is the variable.
Is this possible? I keep getting an error "object variable or with block variable not set" I have hold_key setup in a dim statement as a string