Copy and Paste in Hyperlink from a sheet to another separate sheet

llzizoll

New Member
Joined
Aug 26, 2021
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
I have more than 286 hyperlinks in a sheet where every hyperlink cell is linked to the below cell (for example: A1 is linked to A2, B1 is linked to B2 ... and soon on.

Now, I have to do this in 31 sheets representing 31 days. So, it doesn't make sense to make hyperlinks to 8861 cells (286 X 31=8861)

I tried to copy and paste, I tried to make copy of sheets, but when I click on any hyperlink cell in any of the 31 sheets, it links me back to the original sheet (lets say Sheet 1)

I tried to paste special (Link), it didn't work either.

Is there a way to make it done in easy way?
 

Attachments

  • Problem.png
    Problem.png
    19.8 KB · Views: 7

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Akuini

Well-known Member
Joined
Feb 1, 2016
Messages
3,462
Office Version
  1. 365
Platform
  1. Windows
Hi, @llzizoll
Is there a way to make it done in easy way?

You need vba to do that.
1. Can you post just three of the sheets name?
2. I need to know what the address & subaddress of the hyperlink looks like.
So:
- select the first sheet then run the code below.
- the result is in immediate window.
- post the result here
VBA Code:
Sub getLink()
Dim hh As Hyperlink, i As Long
With ActiveSheet
    Debug.Print .Name
    For Each hh In .Hyperlinks
        Debug.Print "Address: " & hh.Address & " - " & "SubAddress: " & hh.SubAddress
        i = i + 1: If i = 6 Then Exit For
    Next hh
End With
End Sub
 

Forum statistics

Threads
1,144,236
Messages
5,723,173
Members
422,479
Latest member
Mr_Confused

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
Top