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

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Akuini

Well-known Member
Joined
Feb 1, 2016
Messages
3,549
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,147,475
Messages
5,741,347
Members
423,656
Latest member
Medrok2021

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