Saving Column with Hyperlink Function as a Hyperlink

J Harper

New Member
Joined
Jun 3, 2021
Messages
17
Office Version
  1. 365
Platform
  1. Windows
I have created a column of active hyperlinks using the HYPERLINK FUNCTION. I need a column of active hyperlinks without using the HYPERLINK FUNCTION. I have tried PASTE SPECIAL and cannot same the active link.

How can I copy the column and save as an active hyperlink without using the HYPERLINK FUNCTION?

UNACTIVATED FILE PATHACTIVATED FILE PATH USING HYPERLINK FUNCATION; EXAMPLE: HYPERLINK (A2)NEED ACTIVATED PATH WITHOUT USING HYPERLINK FUNCTION
C:\users\downloads\temp\test_folder_dch\test 1.pdfC:\users\downloads\temp\test_folder_dch\test 1.pdf
C:\Users\downloads\temp\test_folder_dch\test 2.pdfC:\Users\downloads\temp\test_folder_dch\test 2.pdf
C:\Users\downloads\temp\test_folder_dch\test 3.pdfC:\Users\downloads\temp\test_folder_dch\test 3.pdf
C:\Users\downloads\temp\test_folder_dch\test 4.pdfC:\Users\downloads\temp\test_folder_dch\test 4.pdf

 
Something like the following:

VBA Code:
Public Sub Copy_Files()
    Dim destFolder As String
    Dim lastRow As Long, r As Long
    Dim SourceFile As String
    Dim DestinationFileRename As String
'
    destFolder = "C:\files\pdfs\"
'
    If Right(destFolder, 1) <> "\" Then destFolder = destFolder & "\"
'
    With ActiveSheet
        lastRow = .Cells(.Rows.Count, "B").End(xlUp).Row
        For r = 2 To lastRow
            SourceFile = .Cells(r, "C")
            DestinationFileRename = .Cells(r, "B")
            FileCopy SourceFile, destFolder & DestinationFileRename & ".pdf"
        Next
    End With
End Sub
 
Upvote 0

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Forum statistics

Threads
1,214,987
Messages
6,122,618
Members
449,092
Latest member
amyap

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