Excel: Macro Error at EXEC() Function, Must Use Full PathnameLast reviewed: November 2, 1994Article ID: Q48169 |
SUMMARYIn Microsoft Excel, if the full (correct) pathname is not used in the EXEC() function, a macro error will result, indicating the cell containing the EXEC() function. When using the EXEC() function to open another application from within an Excel version 2.20 macro under MultiFinder, the entire pathname of the application must be included in the application text reference. For example, if Microsoft Word is located on a hard disk named "HD20" in a folder named "Word Folder", the following is the correct pathname:
"HD20:Word Folder:Microsoft Word"The following is the correct syntax for the EXEC() function:
=EXEC("HD20:Word Folder:Microsoft Word")If the pathname is not specified, Excel will look in the current active directory for the specified application. If the application is not located in the active directory, Excel will return a macro error.
|
KBCategory: kbother
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |