Visual Basic For Applications: Open a URL in a browser

Platform:Visual Basic For Applications
Task:Open a URL in a browser
Discussion:
You need to open a browser and navigate to the URL contained in a database field.
Example:
Private Sub cmdPreviewWebsite_Click()
    On Error GoTo Error:
    Application.FollowHyperlink Website, , True
    Exit Sub
Error:
    MsgBox err.Description
End Sub
Back to Index