hyperlink to the cell of current Row.

Tom2020

New Member
Joined
Aug 6, 2021
Messages
14
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2013
  5. 2010
Platform
  1. Windows
Hi

Maybe I can get some better Solution.

In a For...Next statement, I try to copy data of current Row (sheet 002) to an another sheet (called summery). I don’t need all information of 002, but few (002 has more than 36 columns and will be created from a Master sheet… in next would be named 003 and so forth).

In a step of statement, I have below code works very well. In the column P, it puts sheet name, 002 and creates a link to, exactly to A1 of 002.

Now, I try to change that and to get hyperlink to the cell (from column A), below to current Row.

Thx for help

VBA Code:
Worksheets("summery").Hyperlinks.Add Anchor:=Sheets("summery").Range("P" & (lastRow + 1)), Address:="", SubAddress:="'" & Worksheets(TableName).Name & "'![B]A1[/B]", TextToDisplay:="'" & Worksheets(TableName).Name
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Forum statistics

Threads
1,213,563
Messages
6,114,329
Members
448,564
Latest member
ED38

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top