View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Frank Kabel Frank Kabel is offline
external usenet poster
 
Posts: 3,885
Default 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