Microsoft KB Archive/48169

{| = Excel: Macro Error at EXEC Function, Must Use Full Pathname =
 * width="100%"|

Last reviewed: November 2, 1994

Article ID: Q48169

SUMMARY
In 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 &quot;HD20&quot; in a folder named &quot;Word Folder&quot;, the following is the correct pathname:

&quot;HD20:Word Folder:Microsoft Word&quot; The following is the correct syntax for the EXEC function: =EXEC(&quot;HD20:Word Folder:Microsoft Word&quot;) 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.
 * }