• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

hyperlink macro to same shape

vasim

Member
Hi,


I have a rounded rectangle shape, I have given a hyperlink to it (same workbook, different sheet), I also need to run a macro (its with me) from the same shape...however only the hyperlink criteria works when I click the shape the macro doesnt run....any assistance...


I tried using worksheet_change function but require some help...


'Private Sub Worksheet_SelectionChange(ByVal Target As Range)

'If Target.Parent.Shape = "Rounded Rectangle 11" Then

'MsgBox "there"

'Else

'End If

'End Sub
 
Hi,


My suggestion is rather than having two concepts in one shape you can have the macro code for hyperlink also.


Thanks,

Suresh Kumar S
 
Thanks Suresh...but I have many such shapes and only one macro (it basically hides rows on sheets) which is applicable for all shapes....I mean then I will have to prepare many macros :(
 
Thanks Guys, cant upload a workbook in office and uploading sites are blocked.... I tried using your recommendations and has been stucked here:


If Selection.Shapes("RoRec1") Then Sheets("BU").Range("A9").Select


Any help.....


Thanks
 
Back
Top