Thanks for all who responded.
As it turned out NAV was not quarantineing VBA just due to ..... Ref to
extensibility... or Delete Files or Kill ... etc.
The code below has been doctored for file paths and some filenames to
protect the innocent. The code is presented only for comments as to the
essence of the commands used.
My guess is that the trigger for the NAV to Quarantineing(sp) is the usage
of the word FileSystem.xxxxxx
NOTE: I commented out the following code and NAV stopped grabbing the file!
Any other thoughts??
**********************************
Sub PersonalMacroFileSave()
ActiveWorkbook.SaveCopyAs "C:\Personal.xls"
ChDir "C:\XXXXX"
FileSystem.FileCopy "C
![Stick Out Tongue :p :p](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
ersonal.xls", "C
![Stick Out Tongue :p :p](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
ersonal.xls"
ChDir "C:\Program Files\Microsoft Office\Office11\XLSTART\"
With Application
.ScreenUpdating = False
.DisplayAlerts = False
End With
On Error Resume Next
Workbooks("VB_Tools.xla").Activate
Workbooks("VB_Tools.xla").IsAddin = False
Windows("VB_Tools.xla").Visible = True
Workbooks("VB_Tools.xla").SaveAs FileName:="C:\VB_Tools Save.xla", _
FileFormat:=xlAddIn8
Workbooks("VB_Tools.xla").Close
On Error Resume Next
FileSystem.FileCopy "C:\VB_Tools.xla", "D:\Excel Information\VB_Tools.xla"
On Error Resume Next
FileSystem.FileCopy "C:\VB_Tools.xla", "C:\Transfer\VB_Tools.xla"
On Error Resume Next
FileSystem.FileCopy "C:\VB_Tools.xla", "F:\Hold\VB_Tools.xla"
On Error Resume Next
FileSystem.FileCopy "C:\VB_Tools.xla", "C:\Transfer\VB_Tools Save.xla"
On Error Resume Next
FileSystem.FileCopy "C:\Excel Information\VB_Tools.xla", "\VB_Tools.xla"
On Error Resume Next
FileSystem.FileCopy "C:\Excel Information\VB_Tools.xla", "\VB_Tools.xla"
Windows("PERSONAL.XLS").Visible = True
Workbooks("PERSONAL.XLS").Activate
Workbooks("PERSONAL.XLS").Save
Workbooks("PERSONAL.XLS").SaveAs "C:\Personal.xls", FileFormat:=xlExcel8
Workbooks("PERSONAL.XLS").SaveAs "C:\Transfer\Personal.xls",
FileFormat:=xlExcel8
Workbooks("PERSONAL.XLS").SaveAs "C:\Personal.xls", _
FileFormat:=xlExcel8
Windows("PERSONAL.XLS").Visible = False
With Application
.ScreenUpdating = True
.DisplayAlerts = True
End With
MsgBox "Process Completed! Press OK to Continue"
End Sub
TIA EagleOne