We recently lost functionality within one of our workspreadsheets. Our I.T. departments thinks that it may have something todo with a recent Microsoft update and a dated excel macro.
When the macro is working properly it should open a separatereference spreadsheet, copy a range of cells, insert the copied information,and update everything within the spreadsheet with the new information.
Currently when we try to run the macro a warning pops upstating (Some files can contain viruses or otherwise be harmful to yourcomputer. It is important to be certain that this file is from a trustworthysource.) When OK is selected the spreadsheet churns for several min. withoutcompleting the update. Please find the first couple of lines below.
To date we have tried adding the reference file as a trustedLocation and Document, removed all macros from the reference file, and changingthe location of the reference document on our network. Any help or thoughts would be greatly appreciated.
Thanks!
When the macro is working properly it should open a separatereference spreadsheet, copy a range of cells, insert the copied information,and update everything within the spreadsheet with the new information.
Currently when we try to run the macro a warning pops upstating (Some files can contain viruses or otherwise be harmful to yourcomputer. It is important to be certain that this file is from a trustworthysource.) When OK is selected the spreadsheet churns for several min. withoutcompleting the update. Please find the first couple of lines below.
Code:
Application.ScreenUpdating = False
Application.Calculation =xlCalculationManual
Sheets("SAPW").Visible =True
Sheets("Sapw").Select
Application.DisplayAlerts = False
ActiveWorkbook.FollowHyperlink"File Path",NewWindow:=False
Sheets("Codes").Select
Application.DisplayAlerts = True
Range("A2:D8000").Select
Selection.Copy
Application.DisplayAlerts = False
ActiveWindow.Close
Application.DisplayAlerts = True
Range("r703").Select
ActiveSheet.Paste
Range("R1:S1").Select
Selection.Copy
Range("P703").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Selection.AutoFillDestination:=Range("P703:Q11000"), Type:=xlFillDefault
Thanks!
Last edited by a moderator: