Hi, I'm new to VBA and I have an issue opening up hyperlinks. I have hyperlinks stored in a table and have a button on a form to open each one. I have used the code below on other forms which works great. But now, no hyperlink will open on the form I'm using and I get a run-time error '6' (The internet site reports that the item you requested could not be found). However, when I click on each hyperlink in the table, they open fine. Any help would be greatly appreciated.
Dim strURL1 As String
Dim strURL2 As String
strURL1 = Me.StateRegulations
strURL2 = Replace(strURL1, "#", "")
Application.FollowHyperlink (strURL2)
Dim strURL1 As String
Dim strURL2 As String
strURL1 = Me.StateRegulations
strURL2 = Replace(strURL1, "#", "")
Application.FollowHyperlink (strURL2)