I am trying to follow a hyperlink to a folder on my drive, but when I exectute the code below I get an error that says "Subscript out of range"
The hyperlink in the cell is formulated this way: =HYPERLINK(concatenate(A1,A2)
The hyperlink in the cell is formulated this way: =HYPERLINK(concatenate(A1,A2)
VBA Code:
Sub GoToFileOnDrive()
Dim r As Long
r = ActiveCell.Row
Range("AJ" & r).Select
ActiveCell.Hyperlinks(1).Follow
End Sub