When executing an Office Excel Macro from VisualCron (V7) it fails as per below. The option is turned on in Microsoft Excel to trust all macros and the macro runs just fine if I execute it manually from Excel so am I missing a setting or security option that I need for it to run from VisualCron?
The items it suggested to check are not an issue:
The file name or path does not exist.
The file is being used by another program.
The workbook you are trying to save has the same name as a currently open workbook.
Error Message:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException: Microsoft Office Excel cannot access the file 'D:\Program Files\Decisions Made Easy\Cipher\Reports\BarillaISF\Templates\Rename.xlsm'. There are several possible reasons:
The file name or path does not exist.
The file is being used by another program.
The workbook you are trying to save has the same name as a currently open workbook.
--- End of inner exception stack trace ---
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at Bt80xSkfTWudfYX562.Q0LP2VANLNgalVLDYo.o2yCXNsP6()
Exception in Task: Non zero exit code
Exception in Task: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException: Microsoft Office Excel cannot access the file 'D:\Program Files\Decisions Made Easy\Cipher\Reports\BarillaISF\Templates\Rename.xlsm'. There are several possible reasons:
The file name or path does not exist.
The file is being used by another program.
The workbook you are trying to save has the same name as a currently open workbook.
--- End of inner exception stack trace ---
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at Bt80xSkfTWudfYX562.Q0LP2VANLNgalVLDYo.o2yCXNsP6()
Exception in Task: Non zero exit code