Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Two related issues.
Firstly is it possible to "trap" the followhyperlink event at a sheet or workbook level when the hyperlink is derived from a textbox (or any other shape for that matter). Secondly is it possible to set up a workbook level followhyperlink event for all textboxes on workbook. I tried using a technique that works for controls on a userform but I'm doing something wrong or (as the error message suggests) shapes don't expose the appropriate functionality. It doesn't necessarly need to be the followhyperlink event, the click event would be good enough. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Maybe you could fudge something.
I added a bunch of textboxes from the drawing toolbar (not the controltoolbox toolbar) and typed in my hyperlink addresses. But then I removed the hyperlink itself--I just wanted the text. Then I assigned each textbox this macro: Option Explicit Sub myTextBoxClick() Dim myTB As TextBox Set myTB = ActiveSheet.TextBoxes(Application.Caller) ThisWorkbook.FollowHyperlink myTB.Text End Sub This is pretty restrictive, but it might give you some ideas. Ignatius wrote: Two related issues. Firstly is it possible to "trap" the followhyperlink event at a sheet or workbook level when the hyperlink is derived from a textbox (or any other shape for that matter). Secondly is it possible to set up a workbook level followhyperlink event for all textboxes on workbook. I tried using a technique that works for controls on a userform but I'm doing something wrong or (as the error message suggests) shapes don't expose the appropriate functionality. It doesn't necessarly need to be the followhyperlink event, the click event would be good enough. -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do I organize events | Excel Discussion (Misc queries) | |||
Enabling Events | Excel Discussion (Misc queries) | |||
Events won't Disable! | Excel Discussion (Misc queries) | |||
frequency of events | Excel Discussion (Misc queries) | |||
events? | Excel Discussion (Misc queries) |