I'm attempting to use the ActiveWorkbook.FollowHyperlink command to open a browser using an address located in a cell. I need to do it this way due to having a large list of objects and the window has to open a different webpage based upon the object selected. Basically I need to be able to set the address using a string variable, instead of a string address.
Here is my code
I receive a run-time error '-2147221014(800401ea)': Cannot open specified file.
Here is my code
Code:
Private Sub Label3_Click()
Dim linker As String
linker = Worksheets("Object List").Cells(Counter, SubCounter + 2).Value
'Thus linker now is equal to "[URL unfurl="true"]www.microsoft.com"[/URL] simply set as a test
ActiveWorkbook.FollowHyperlink Address:=linker, _
NewWindow:=True
End Sub
I receive a run-time error '-2147221014(800401ea)': Cannot open specified file.