![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Apr 2002
Posts: 85
|
Anyone know if it possible to run modules/macros using hyperlinks?
Thanks, |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Christchurch New Zealand
Posts: 1,030
|
no only if you were to link the hyperlink to another workbook and when that workbook opened it autoran a macro otherwise I'm pretty sure thats a no
i think you can only attach macros to objects |
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Quote:
you are using xl2000. Use the sheets FollowHyperlink Event In the sheet with the Hyperlinks you can do something like this; Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink) Select Case Target.Parent Case "Sheet3!A1" Call MyMacro1 Case "Sheet3!A2" Call MyMacro2 End Select End Sub The Target.Parent is the Name of the Hyperlink that you click. |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|