Setting range using vlookup
On Jul 30, 10:35*pm, Raj wrote:
Hi,
I want to set the range depending on a value derived by doing a
vlookup in a range.
The vlookup successfully retrieves the value and stores it in a string
variable rsprangevalue. The retrieved value stored in rsprangevalue
is:
Worksheets("Parameters").Range("H3:K3")
Next I want the range to be set using this value.
The code used for this is
Set rsprange = rsprangevalue
(rsprange is declared as a Range variable)
This fails with the "rsprangevalue" highlighted with the error message
"Type Mismatch".
Please help.
Thanks in advance for the help.
Regards,
Raj
I sent you an example I made that will do exactly what your looking
for... Check your e-mail and let me know how it works out.
|