+ Reply to Thread
Results 1 to 3 of 3

hyperlink to unhide and activate another sheet

  1. #1
    Forum Contributor
    Join Date
    07-13-2015
    Location
    Poland
    MS-Off Ver
    MS Office 365
    Posts
    174

    hyperlink to unhide and activate another sheet

    Hi,

    I have workbook with sheet1 named "table", and hidden sheet2 ("fruits") and hidden sheet3 ("vegetables").

    In sheet1 there is "fruit" on A1 and "vegetables" at cell A2.
    B1 consists "apple", B2 "tomato".

    How can I create some hyperlink to unhide and activate specific worksheet when click on B1 or B2 ?

  2. #2
    Valued Forum Contributor Sadath31's Avatar
    Join Date
    03-02-2011
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Office 365
    Posts
    452

    Re: hyperlink to unhide and activate another sheet

    Sheet hide/unhide can do with VBA

    Sub HIDE()
    Sh = Cells(1, ActiveCell.Column)
    Sheets(Sh).Visible = False
    End Sub


    Sub UNHIDE()
    Sh = Cells(1, ActiveCell.Column)
    Sheets(Sh).Visible = TRUE
    End Sub

  3. #3
    Forum Contributor
    Join Date
    07-13-2015
    Location
    Poland
    MS-Off Ver
    MS Office 365
    Posts
    174

    Re: hyperlink to unhide and activate another sheet

    but I want to run macro during click on the text.

    Now I know that I have to go to B1 and INSERT > HYPERLINK.

    Than write macro:

    Please Login or Register  to view this content.
    ... but how can I insert this macro for each cell from B1 to B100 ??

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Button to activate a hyperlink (but going always to the top of the screen)
    By richard11153 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-27-2015, 01:22 PM
  2. [SOLVED] Macro to activate Hyperlink not working
    By Rick23 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 09-19-2014, 03:15 AM
  3. [SOLVED] Activate a hyperlink
    By BRISBANEBOB in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-13-2014, 09:53 AM
  4. [SOLVED] Only unhide sheet when hyperlink is clicked that directs to the sheet
    By Xx7 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-12-2014, 05:38 AM
  5. [SOLVED] Hyperlink to activate macro that jumps to different part of same sheet
    By RichTea88 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-20-2013, 11:07 AM
  6. Unhide, then Activate a worksheet?
    By CMR80 in forum Excel General
    Replies: 0
    Last Post: 06-11-2012, 04:17 PM
  7. Using the Activate event to hide/unhide based on IF tests
    By arukas in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-23-2008, 11:45 AM

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