finding value in a hidden sheet
Hi
you can't activate a cell on a hidden sheet (but this is not necessary
in most cases). If you just want the value use
Dim Cell As Range
Set Cell = Range("List").Find(What:=Range("nametofind"))
msgbox cell.address
--
Regards
Frank Kabel
Frankfurt, Germany
caroline wrote:
My code seems to fail because I am searching a value in a
hidden sheet. Any idea?
I get the following message (runtime error 1004, activate
method out of range class failed)
Dim Cell As Range
Set Cell = Range("List").Find(What:=Range("nametofind"))
Cell.Activate
PS: list and nametofind are defined names
|