heavican03
New Member
I have a vba macro that is navigating to a hyperlink and downloading a file that is then saved. The only problem I am having with it is I can't get it to stop bringing up the Microsoft office warning that the file might contain harmful files. Can you help?
Code:
I have a vba macro that is navigating to a hyperlink and downloading a file that is then saved. The only problem I am having with it is I can't get it to stop bringing up the Microsoft office warning that the file might contain harmful files. Can you help?
Code:
Sub LinkAndCopy()
Application.ScreenUpdating = False
Application.DisplayAlerts = False
ThisWorkbook.FollowHyperlink Address:="http://cts/Tacs/LDCOperationDrillExport/762"
ActiveWorkbook.SaveAs "C:\Users\q6bxh0\Documents\downloads\file.xlsx"
ActiveWorkbook.Close
Application.ScreenUpdating = True
Application.DisplayAlerts = True
End Sub
Last edited: