#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default Hyperlink to a Macro

Can you make a Hyperlink so when you click it runs a macro?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,290
Default Hyperlink to a Macro

Yes

"pokdbz"
wrote in message
Can you make a Hyperlink so when you click it runs a macro?
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 334
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro & Hyperlink Carlsbad Excel Worksheet Functions 0 March 12th 07 10:53 PM
Hyperlink Macro Diane Excel Discussion (Misc queries) 0 September 25th 06 04:51 PM
Hyperlink to open .dot with a macro scottEfraz Excel Discussion (Misc queries) 1 November 16th 05 11:07 PM
Intra-workbook hyperlink: macro/function to return to hyperlink ce marika1981 Excel Discussion (Misc queries) 3 May 6th 05 05:47 AM
Macro/Hyperlink Craig Excel Discussion (Misc queries) 1 February 28th 05 05:51 AM


All times are GMT +1. The time now is 10:59 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"