Starting Excel with No Worksheets OpenID: Q77538
|
In Microsoft Excel, version 3.0, to start the program with no worksheets open, you can create an Auto_Open macro that closes Sheet1. Normally an Auto_Open macro will run before Sheet1 ever opens, so you must end the Auto_Open macro, allow Sheet1 to open, and then run a second macro that closes Sheet1. If you are using Microsoft Excel version 4.0, you may use the /e startup switch as an alternative to this macro.
The following Auto_Open macro uses the ON.TIME function to call a
second macro two seconds later. This gives Sheet1 time to open before
the second macro is executed. The second macro then closes Sheet1 and
displays the Null menu bar (File and Help menus only).
A1: Auto_Open
A2: =ON.TIME(NOW()+"00:00:02","SHUTDOWN")
A3: =RETURN()
A4: ShutDown
A5: =ACTIVATE("Sheet1")
A6: =CLOSE()
A7: =RETURN()
startup and switches and command-line.
"Microsoft Excel Function Reference," version 4.0, pages 305-306
"Microsoft Excel User's Guide 1," version 4.0, pages 7 and 60-61
"Microsoft Excel User's Guide 2," version 4.0, page 260
"Microsoft Excel Function Reference," version 3.0, page 168
"Microsoft Excel User's Guide," version 3.0, pages 139, 622
Additional query words: 3.0 3.00 4.0 4.00 Q91632 4.0a 4.00a
Keywords :
Version :
Platform :
Issue type :
Last Reviewed: March 22, 1999