G
Guest
Hiya
I wish to take a string such as
ThisString = "'Sheet Name'!$A$1:$C$3"
And use it within a range object like so:
Set Location = Range(ThisString)
This example would work but I wish to avoid errors generated by strings
which aren't valid references.
Is there a method about which can check whether the string is a valid
reference?
I'm not too hot on error trapping and generally aim to avoid them in the
first place. So I would prefer not to use the On Error statement unless you
thoroughly explain it as if I'm very stupid.
TIA!
Nick
I wish to take a string such as
ThisString = "'Sheet Name'!$A$1:$C$3"
And use it within a range object like so:
Set Location = Range(ThisString)
This example would work but I wish to avoid errors generated by strings
which aren't valid references.
Is there a method about which can check whether the string is a valid
reference?
I'm not too hot on error trapping and generally aim to avoid them in the
first place. So I would prefer not to use the On Error statement unless you
thoroughly explain it as if I'm very stupid.
TIA!
Nick