Created
May 25, 2024 01:48
-
-
Save rwp0/52708d4f5f63799c42edec889797b7bd to your computer and use it in GitHub Desktop.
Link Column Cells in Excel with VBA Macro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub my_macro() ' Macro is named after the function | |
For Each cell in ActiveSheet.Range("A1:A30") | |
ActiveSheet.Hyperlinks.Add cell, "https:/example.com" & cell.Value | |
Next | |
End Sub | |
' https://learn.microsoft.com/en-us/office/vba/api/excel.application.activesheet | |
' https://learn.microsoft.com/en-us/office/vba/api/excel.range(object) | |
' https://learn.microsoft.com/en-us/office/vba/api/excel.hyperlinks.add |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment