+ Reply to Thread
Results 1 to 3 of 3

Unhide sheet based on NamedRange?

  1. #1
    Michael Beckinsale
    Guest

    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. #2
    Tom Ogilvy
    Guest

    RE: 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. #3
    Michael Beckinsale
    Guest

    Re: Unhide sheet based on NamedRange?

    Tom,

    Many thanks for the prompt reply.

    Perfect. Just what l want!

    Regards
    "Tom Ogilvy" <[email protected]> wrote in message
    news:[email protected]...
    > 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1