Transfer hyperlinks and apply to adjacent text in bulk automatically

zgoldflo

New Member
Joined
Dec 13, 2021
Messages
30
Office Version
  1. 365
Platform
  1. Windows
Case: I have two columns one with normal text the other with a hyperlink. I want all adjacent links to be applied to the adjacent texts. What I have been doing until now is simply (CTRL+C) copying the link and (CTRL+K) to paste the link on the adjacent text one by one manually (extremely time consuming). Each text row has a corresponding individual unique hyperlink.

Question: Is there a way to automatically (either through formula or otherwise) to bulk copy hyperlinks and bulk paste them to respective adjacent text?

Example: (Top 4 links have been copied and pasted; it's the balance of 300+ lines of data that need that link to be applied to adjacent text)





P.S. Currently data is in Google sheets but could easily transfer to excel to make changes. Would save hours maybe even days of work.
 

Attachments

  • Screenshot 2022-08-31 205305.jpg
    Screenshot 2022-08-31 205305.jpg
    215.7 KB · Views: 7
Last edited:

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hello!

If I understand your goals correcty (try on a copy of your data):
VBA Code:
Sub zgf()
Dim r As Range, c As Range
    With ActiveSheet
        Set r = Application.InputBox("Select one-column range for hyperlinks adding from righter column", , , , , , , 8)
        Application.ScreenUpdating = 0
        For Each c In r
            If Not (IsEmpty(c)) Then
                If c.Hyperlinks.Count = 0 Then .Hyperlinks.Add Anchor:=c, Address:=c.Offset(, 1).Value
            End If
        Next c
    End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,719
Messages
6,174,089
Members
452,542
Latest member
Bricklin

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