Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 80
Default Unhide sheet based on NamedRange?

Hi All,

Is there a way to unhide a hidden sheet based on the the named range.

For example if you want to select a named range say 'MyRange' whose address
is Sheet1!A1:A20 but Sheet1 is hidden is there a simple way to extract the
Sheet name.

TIA

Regards

Michael Beckinsale


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Unhide sheet based on NamedRange?

Dim sh as Worksheet
set sh = Range("MyRange").Parent
sh.Visible = xlSheetVisible

--
Regards,
Tom Ogilvy


"Michael Beckinsale" wrote:

Hi All,

Is there a way to unhide a hidden sheet based on the the named range.

For example if you want to select a named range say 'MyRange' whose address
is Sheet1!A1:A20 but Sheet1 is hidden is there a simple way to extract the
Sheet name.

TIA

Regards

Michael Beckinsale



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 80
Default Unhide sheet based on NamedRange?

Tom,

Many thanks for the prompt reply.

Perfect. Just what l want!

Regards
"Tom Ogilvy" wrote in message
...
Dim sh as Worksheet
set sh = Range("MyRange").Parent
sh.Visible = xlSheetVisible

--
Regards,
Tom Ogilvy


"Michael Beckinsale" wrote:

Hi All,

Is there a way to unhide a hidden sheet based on the the named range.

For example if you want to select a named range say 'MyRange' whose
address
is Sheet1!A1:A20 but Sheet1 is hidden is there a simple way to extract
the
Sheet name.

TIA

Regards

Michael Beckinsale





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
how can I unhide/hide a sheet based on pull down selection? Keith Excel Discussion (Misc queries) 1 August 12th 08 04:17 PM
HELP!! Unhide Sheet with Macro and focus on other sheet [email protected] Excel Discussion (Misc queries) 2 May 23rd 06 07:17 PM
Hide/unhide sheet macro based on cell calculation Greg Fisher Excel Programming 3 May 26th 05 05:58 PM
Unhide sheets based on NT login MaxBrit Excel Programming 4 May 6th 04 12:40 PM
Unhide sheets based on a cell value Tim[_36_] Excel Programming 6 April 30th 04 02:57 AM


All times are GMT +1. The time now is 08:44 PM.

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

About Us

"It's about Microsoft Excel"