Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default excel - On hyperlink click find what cell or cell value is

I have an excel sheet that is locked, I have in all cells a1 thru
a999999(dynamic) a hyperlink that points to a dummy cell. I catch the
hyper link click in the hyperlink event and want to call a function
using the value in the cell they have clicked on, but cant find a way
of telling what hyper link has been clicked.

I need to find how to determin what the hyperlink cell was or text that
the hyper link was, tried the active cell but it points to the dummy
one.


short of changing the value in every hyper link to A1, a2 a3 a4 and so
on. The values in the sheet shown are picked up from another sheet so
the hyper link values are dynamic. Tried seting the first cell the
hyper link a1 and cut and paste but left it as a1 !

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default excel - On hyperlink click find what cell or cell value is

Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
msgbox hyperlink.Range.Address & ", " & hyperlink.TextToDisplay
End Sub


--
Regards,
Tom Ogilvy

"Mavrick" wrote in message
ups.com...
I have an excel sheet that is locked, I have in all cells a1 thru
a999999(dynamic) a hyperlink that points to a dummy cell. I catch the
hyper link click in the hyperlink event and want to call a function
using the value in the cell they have clicked on, but cant find a way
of telling what hyper link has been clicked.

I need to find how to determin what the hyperlink cell was or text that
the hyper link was, tried the active cell but it points to the dummy
one.


short of changing the value in every hyper link to A1, a2 a3 a4 and so
on. The values in the sheet shown are picked up from another sheet so
the hyper link values are dynamic. Tried seting the first cell the
hyper link a1 and cut and paste but left it as a1 !



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
Hyperlink from one.xlsx cell to another two.xlxs cell & click back Bobbi-Joe Excel Worksheet Functions 1 August 7th 09 07:18 PM
click on one cell to find and highlight a related cell? JustSomeGuy Excel Discussion (Misc queries) 1 September 3rd 07 03:02 PM
enter data in cell but cannot save until click off cell in excel T70McCains Excel Discussion (Misc queries) 1 November 18th 05 05:06 PM
When you click a hyperlink in a cell i get a Warning message David Excel Discussion (Misc queries) 0 October 20th 05 01:46 AM
Click on cell-calendar drops down-click on date-date fills cell. . George Setting up and Configuration of Excel 1 April 15th 05 08:22 AM


All times are GMT +1. The time now is 02:22 PM.

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

About Us

"It's about Microsoft Excel"