Results 1 to 14 of 14

Clicking Link to Hidden Sheet - Unable to get visible property

Threaded View

  1. #1
    Registered User
    Join Date
    01-27-2021
    Location
    Michigan
    MS-Off Ver
    365
    Posts
    8

    Clicking Link to Hidden Sheet - Unable to get visible property

    Hello,

    I am very new to VBA and following a few tutorials online to try and click a link on a main sheet to access data on a hidden sheet and then have it hidden again. When I use the following macro, I get a bug error message. I have attached a screen show of the debugger and my spreadsheet. There is no data on it yet, just the sheets and links as I want to make sure this will work before doing it.

    Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
    linkto = Target.SubAddress
    wherebang = InStr(1, linkto, "1")
    If wherebang > 0 Then
    mysheet = Left(linkto, wherebang - 1)
    Worksheets(mysheet).Visible = True
    Worksheets(mysheet).Select
    myaddr = Mid(linkto, wherebang + 1)
    Worksheets(mysheet).Range(myaddr).Select
    End If

    End Sub

    Appreciate the help!
    Ashley
    Attached Images Attached Images
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Unable to set visible property of the pivotitem class
    By countryfan_nt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-05-2017, 04:26 PM
  2. Error on Sheet Name Change: "Unable to set the Hidden Property of the Range Class"
    By mandora in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-23-2013, 06:10 PM
  3. unable to set the visible property of the pivotitem class
    By goldfrapp01 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-22-2013, 12:27 PM
  4. Pivot Table - unable to set visible property?
    By Aland2929 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-19-2010, 06:11 AM
  5. Unable to set the visible property of the worksheet class
    By colinnwn in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-09-2009, 03:48 PM
  6. Unable to set Hidden Property
    By LAF in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-24-2005, 07:05 AM
  7. unable to set hidden property
    By davegb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-21-2005, 08:06 PM

Tags for this Thread

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