Microsoft KB Archive/90402

{|
 * width="100%"|

Excel: STEP Causes Macro Error in Auto_Open Macro

 * }

-

The information in this article applies to:


 * Microsoft Excel for the Macintosh, version 4.0

-

SUMMARY
A STEP macro statement in an Auto_Open routine which executes while Excel is launching will result in a macro error. If Excel is already open when the Auto_Open macro executes, the function behaves normally.

MORE INFORMATION
Double-clicking an Excel 4.0 document from the desktop while Excel is not running in the background launches Excel and opens the selected document. In this circumstance, any STEP statement executed by an Auto_Open macro results in a macro error.

Workaround
Loading the document from within Excel by choosing Open from the File menu avoids this problem.

Reference(s):

&quot;Microsoft Excel Function Reference,&quot; version 4.0, page 420

Additional query words: 4.00

Keywords : kbprg

Version :

Platform :

Issue type :

Technology :