ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Insert Data when hyperlink is clicked (https://www.excelbanter.com/excel-discussion-misc-queries/44296-insert-data-when-hyperlink-clicked.html)

Chuck N

Insert Data when hyperlink is clicked
 

I have a set of reciept numbers on one worksheet and i want you to be
able to click on the reciept number and it will put that reciept number
in cell J1 on the other worksheet. Is there a way to do this?


--
Chuck N
------------------------------------------------------------------------
Chuck N's Profile: http://www.excelforum.com/member.php...o&userid=27057
View this thread: http://www.excelforum.com/showthread...hreadid=465742


Juan Pablo González

You could do it using the FollowHyperlink event of the worksheet which is
available, if I remember correctly, in Excel XP and above.

--
Regards,

Juan Pablo González
Excel MVP
"Chuck N" wrote in
message ...

I have a set of reciept numbers on one worksheet and i want you to be
able to click on the reciept number and it will put that reciept number
in cell J1 on the other worksheet. Is there a way to do this?


--
Chuck N
------------------------------------------------------------------------
Chuck N's Profile:
http://www.excelforum.com/member.php...o&userid=27057
View this thread: http://www.excelforum.com/showthread...hreadid=465742




Chuck N


John Peltier definetly helped me out with this! Here is the code if
anyone is interested


Code:
--------------------
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
ThisWorkbook.Worksheets("Form").Range("J1").Value _
= Target.Range.Value
End Sub
--------------------


--
Chuck N
------------------------------------------------------------------------
Chuck N's Profile: http://www.excelforum.com/member.php...o&userid=27057
View this thread: http://www.excelforum.com/showthread...hreadid=465742



All times are GMT +1. The time now is 08:28 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com