+ Reply to Thread
Results 1 to 2 of 2

Disable Hyperlink in and Excel shape

Hybrid View

OwenMcH Disable Hyperlink in and... 10-17-2014, 11:03 AM
lokicl Re: Disable Hyperlink in and... 10-20-2014, 11:02 AM
  1. #1
    Registered User
    Join Date
    07-28-2014
    Location
    Dublin, Ireland
    MS-Off Ver
    MS Office Home & Student 2010
    Posts
    23

    Disable Hyperlink in and Excel shape

    Hi Folks,

    I've created a dashboard for my workbook and have just one shape button which has a hyperlink on it. I would, however, like to have the button's hyperlink become disabled if the value of a specific cell is a set value.

    I have attached an example, and simply put, I would like for the button to be 'not-clickable' if the user selects 'Option B' from the drop down list. When the user selects 'Option A' again, the hyperlink should become active again.

    If possible, I'd like the button's format to change in some way as well; perhaps fade, or change colour.

    Any help would be appreciated.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    09-27-2011
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    86

    Re: Disable Hyperlink in and Excel shape

    Hi,

    Update the below code in the respective sheet event

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Range("c3").Value = "Option B" Then
        Sheet1.Shapes("Rounded Rectangle 1").Hyperlink.Delete
    Else
        Sheet1.Hyperlinks.Add Anchor:=Shapes("Rounded Rectangle 1"), Address:="", SubAddress:="Sheet2!A1"
    End If
    End Sub
    Regards,
    Lokesh

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. Disable Hyperlink Warning in Excel 2010
    By mubashir aziz in forum Excel General
    Replies: 6
    Last Post: 07-16-2012, 03:00 AM
  2. disable shape selection
    By globalpontoon in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-01-2010, 08:51 AM
  3. Replies: 2
    Last Post: 01-12-2006, 01:55 PM
  4. Replies: 0
    Last Post: 01-03-2006, 02:10 PM
  5. Replies: 1
    Last Post: 04-15-2005, 12:06 PM

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