K
Kachi
hi I recently got introduced to the wonderful world of macros in Visio
drawings.
I created a macro that would automate the hyperlink tool and make it
available under the Double Click behavior of a shape. My problem is I dont
want to create multiple macros because it seems that the code only references
the hyperlink of the original shape from which I created the macro. Is there
a way to edit the code so that each macro interation correctly references the
hyperlink of the new shape?
here is my code:
Sub kachi()
' Keyboard Shortcut: Ctrl+k
'
Application.ActiveWindow.Page.Shapes.ItemFromID(365).Hyperlinks.Item(0).Follow
End Sub
Any help you can give will be much appreciated
..
drawings.
I created a macro that would automate the hyperlink tool and make it
available under the Double Click behavior of a shape. My problem is I dont
want to create multiple macros because it seems that the code only references
the hyperlink of the original shape from which I created the macro. Is there
a way to edit the code so that each macro interation correctly references the
hyperlink of the new shape?
here is my code:
Sub kachi()
' Keyboard Shortcut: Ctrl+k
'
Application.ActiveWindow.Page.Shapes.ItemFromID(365).Hyperlinks.Item(0).Follow
End Sub
Any help you can give will be much appreciated
..