I am trying to adapt the code within the link below.
I need it to, within my first sheet, when a hyperlink is clicked in column F (which links through to a second sheet "Pricing"), the value of the corresponding cell in column A is printed in column C of the Pricing sheet.
Examples:
- In the first sheet, hyperlink in F6 directs to Pricing worksheet
- When clicking the hyperlink, cell value A6 in the first sheet prints in cell C6 of the Pricing worksheet.
https://www.techonthenet.com/excel/hyperlinks/update_cell2013.php
The code is based on a flat value, I need it to work dynamically on each row:
If Sh.Name = "First Sheet" Then
If GSourceCell = "F6" Then
Sheets("Pricing").Range("C6").Value = Sheets("First Sheet").Range("A6")
.Offset
. Here is the documentation. – jclasley