Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default finding value in a hidden sheet

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default finding value in a hidden sheet

Thanks it works.
SO it must be something else in my code that does not
agree with the hidden sheet.
I am a bit confused, because I use "activate" all the
time on hidden sheet and it usually works.
-----Original Message-----
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


.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default finding value in a hidden sheet

Hi
so post your complete code :-)
Note: Activate should be avoided as this will slow down your macro and
is in most cases not required

--
Regards
Frank Kabel
Frankfurt, Germany

"caroline" schrieb im Newsbeitrag
...
Thanks it works.
SO it must be something else in my code that does not
agree with the hidden sheet.
I am a bit confused, because I use "activate" all the
time on hidden sheet and it usually works.
-----Original Message-----
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


.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding min date value with hidden zeros with vlookup ML Excel Worksheet Functions 4 September 27th 08 05:14 AM
Finding all cells that are locked/hidden Bob Excel Discussion (Misc queries) 4 December 29th 06 02:24 PM
I need my Hidden Rows to stay hidden when I print the sheet. Rosaliewoo Excel Discussion (Misc queries) 2 July 20th 06 07:51 PM
Saving hidden data with a worksheet (preferably without using a hidden sheet) Dick Kusleika[_3_] Excel Programming 2 January 21st 04 04:39 PM
Problem pasting a row from a hidden sheet to the first free row on another visible sheet Didier Poskin Excel Programming 2 January 10th 04 01:18 AM


All times are GMT +1. The time now is 06:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"