Article ID: 120871 - Last Review: August 15, 2003 - Revision: 1.1 AutoSave Command Recorded in Subroutine or MacroThis article was previously published under Q120871 SYMPTOMS
In Microsoft Excel, if you record a Microsoft Visual Basic for Applications macro or
a Microsoft Excel version 4.0 macro while the AutoSave add-in is
functioning, and the AutoSave add-in prompts you to save a file
while you are recording, one of the following lines of code is recorded in
your subroutine.
Microsoft Excel 97
------------------
Application.Run Range("AUTOSAVE.XLA!mcs02.OnTime")
Microsoft Excel for Windows, version 5.0 and
Microsoft Excel for Windows 95, version 7.0
--------------------------------------------
Visual Basic for Applications:
Application.Run Macro:=Range("AUTOSAVE.XLA!mcs02.OnTime")
MS Excel 4.0:
=RUN("AUTOSAVE.XLA!mcs02.OnTime",FALSE)
Microsoft Excel for the Macintosh, version 5.0
----------------------------------------------
Visual Basic for Applications:
Application.Run Macro:=Range("'Auto Save'!mcs02.OnTime")
MS Excel 4.0:
=RUN("'Auto Save'!mcs02.OnTime",FALSE)
CAUSE
This problem occurs because the macro recording system in Microsoft Excel
is aware of macros that are assigned to run at a certain time
(for instance "ON.TIME macros"). If such a macro runs while the macro
recorder is operating, the command to run that macro is recorded.
This behavior is by design.
WORKAROUND
To work around this problem, use either of the following methods:
| Article Translations
|

Back to the top
