PC Review


Reply
Thread Tools Rate Thread

HOW: Click Formula Hyperlink To Trigger Macro

 
 
Henninger5
Guest
Posts: n/a
 
      28th Apr 2010
I have a column (Column 6) where every row contains an IF() formula
that results in a HYPERLINK() formula if the previous cells in that
row each contain data. In other words, a hyperlink shows up if the
row is filled out. If the hyperlink shows up, and the user clicks it,
I want a macro to be triggered. I want to trigger a macro that draws
upon the data from the other cells in that row.

My first discovery was the Worksheet_FollowHyperlink event. It seemed
perfect. It triggers when a Hyperlink Object is click and captures
that location of the cell where the hyperlink was clicked. However,
it doesn't trigger with Hyperlink Formulas, just Objects.

I've been filling my hyperlink formula destinations with '#' so that
they don't go anywhere, but can I specify a hyperlink destination that
is a trigger for the macro?

Any help would be appreciated.
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      28th Apr 2010
Personally, I think I would drop the hyperlink idea.

I'd replace it with either a worksheet event (_beforerightclick or
_beforedoubleclick) or even an object (like a button from the forms toolbar) in
the cell.

Or even a single button at the top of the worksheet (freeze row 1) and then use
the activecell's row to do the work in the macro.

Henninger5 wrote:
>
> I have a column (Column 6) where every row contains an IF() formula
> that results in a HYPERLINK() formula if the previous cells in that
> row each contain data. In other words, a hyperlink shows up if the
> row is filled out. If the hyperlink shows up, and the user clicks it,
> I want a macro to be triggered. I want to trigger a macro that draws
> upon the data from the other cells in that row.
>
> My first discovery was the Worksheet_FollowHyperlink event. It seemed
> perfect. It triggers when a Hyperlink Object is click and captures
> that location of the cell where the hyperlink was clicked. However,
> it doesn't trigger with Hyperlink Formulas, just Objects.
>
> I've been filling my hyperlink formula destinations with '#' so that
> they don't go anywhere, but can I specify a hyperlink destination that
> is a trigger for the macro?
>
> Any help would be appreciated.


--

Dave Peterson
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro add Hyperlink formula =?Utf-8?B?Y21hcmNo?= Microsoft Excel Programming 24 13th Jan 2009 11:16 PM
Hyperlink click event trigger using Aspxdatagridview control Kiran Mahale Microsoft C# .NET 0 19th Dec 2007 05:14 PM
Is it possible to click in a cell and trigger a macro? serdar Microsoft Excel Discussion 9 17th Oct 2005 01:55 PM
[Outlook 2003] Catch the event 'click on an hyperlink' so as to trigger a script first last Microsoft Outlook Discussion 0 28th Jun 2005 09:36 AM
Formula trigger a macro?? Jeff Wright Microsoft Excel Discussion 5 7th Feb 2004 04:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:30 AM.