Microsoft KB Archive/69760

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 18:58, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Returning to Word After Starting Excel Using WordBasic

PSS ID Number: Q69760 Article last modified on 02-19-1993

1.00 1.10 1.10a 2.00 WINDOWS

Summary: Using the following WordBasic commands in Word for Windows, it is possible to start Excel and return to Word for Windows: Sub Main Shell “Excel” Apprestore Appmaximize Endsub

More Information: This instruction to shell out to Excel can be part of a larger macro. It can also be used to start any other application and return to Word for Windows. To do this, replace “Excel” with the name of the application desired (quotation marks must enclose the application name). It is also possible to load a document with the application before returning to Word for Windows. For example: Shell “Exceldoc.xls” In the above example, the name of the document can be used alone as long as an association with the application exists under Microsoft Windows (WIN.INI).

Reference(s): “Microsoft Word for Windows Technical Reference,” page 39 for DocMaximize; page 30 for AppRestore; page 117 for Shell

Additional reference words: w4wmacro 1.00 1.10 1.10a 2.0 2.00 Shell out to excel