- Local time
- Today, 05:47
- Joined
- Jan 23, 2006
- Messages
- 15,526
I'm working with a new laptop and a new version of O365. I am trying to loop through a series of hyperlinks(see example below).
I am getting this error when running code in vba .
However I don't get the error and the link opens in my Firefox browser when I run it directly from the immediate window.
application.followHyperlink "https://techcommunity.microsoft.com/t5/Access-Blog/bg-p/AccessBlog"
I am getting this error when running code in vba .
Code:
Process:
' Process the URLs
180 On Error Resume Next
190 sFileName = path & "Pat_out.txt"
200 iFileNum = FreeFile
210 Open sFileName For Input As iFileNum
220 Do Until EOF(iFileNum)
230 Line Input #iFileNum, sBuf
240 Debug.Print "application.followHyperlink " & sBuf
250 murl = sBuf
260 Application.FollowHyperlink murl
270 Loop
280 On Error GoTo 0
TestBookmark_Exit:
290 Exit Sub
TestBookmark_Error:
300 MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure TestBookmark, line " & Erl & "."
310 GoTo TestBookmark_Exit
End Sub
However I don't get the error and the link opens in my Firefox browser when I run it directly from the immediate window.
application.followHyperlink "https://techcommunity.microsoft.com/t5/Access-Blog/bg-p/AccessBlog"