DisplayAlerts

  • Thread starter Gary''s Student
  • Start date
G

Gary''s Student

I am trying to follow a hyperlink without generating a warning and am using:

Sub openit()
Dim s As String
s = "file:///c:\b.xls"
Application.DisplayAlerts = False
ActiveWorkbook.FollowHyperlink Address:=s
Application.DisplayAlerts = True
End Sub

I am, however still getting a warning: "Hyperlinks can be harmful....."
How do i surpress this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top