Mik Mak
asked on
Word 2010 assign Hyperlink to Sub code
I'm struggling a bit assigning a hyperlink to a Sub containing some vba code in Word 2010 - like it's possible in PowerPoint
I've tried the ActiveDocument.Hyperlinks. Item (1).Address ="RunTheDamnedSub" but without success - please advice :)
Thanks Michael
I've tried the ActiveDocument.Hyperlinks.
Thanks Michael
ASKER
Hi
thank you for you input - but the hyperlink is already there - so no need to Add ( Item(1) )
- and more importantly the Selection.Range and Selection you mention is not valid in Word ?
thank you for you input - but the hyperlink is already there - so no need to Add ( Item(1) )
- and more importantly the Selection.Range and Selection you mention is not valid in Word ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Please try this link which guides to assign Macro with Macro Button:
MacroButton Fields - not just for macros anymore!
MacroButton Fields - not just for macros anymore!
ASKER
I was trying to assign the hyperlink to a Picture, but this could be a good alternative :)
You need to specify full path as below example, please try below changing your range:
Open in new window