Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Hyperlink to a Macro
Can you make a Hyperlink so when you click it runs a macro?
|
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Hyperlink to a Macro
Yes
"pokdbz" wrote in message Can you make a Hyperlink so when you click it runs a macro? |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Hyperlink to a Macro
First have the hyperlink point to a cell. When the jump is made to the cell,
use an Event to trigger the macro: In A1 enter: =HYPERLINK("#sheet1!Z100","leap") and in worksheet code have something like: Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Intersect(Target, Range("Z100")) Is Nothing Then Exit Sub End If MsgBox ("hello") End Sub REMEMBER: worksheet code, not a standard module. -- Gary''s Student - gsnu200735 "pokdbz" wrote: Can you make a Hyperlink so when you click it runs a macro? |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Hyperlink to a Macro
If you're using insert|Hyperlink to create those hyperlinks, you may be able to
tie into the Worksheet_FollowHyperlink event. pokdbz wrote: Can you make a Hyperlink so when you click it runs a macro? -- Dave Peterson |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
Hyperlink to a Macro
How?
"Jim Cone" wrote: Yes "pokdbz" wrote in message Can you make a Hyperlink so when you click it runs a macro? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro & Hyperlink | Excel Worksheet Functions | |||
Hyperlink Macro | Excel Discussion (Misc queries) | |||
Hyperlink to open .dot with a macro | Excel Discussion (Misc queries) | |||
Intra-workbook hyperlink: macro/function to return to hyperlink ce | Excel Discussion (Misc queries) | |||
Macro/Hyperlink | Excel Discussion (Misc queries) |