Microsoft KB Archive/50492

{| = Excel: EXEC Function Causes Crash with Long Pathname =
 * width="100%"|

Last reviewed: November 2, 1994

Article ID: Q50492

SUMMARY
If the pathname supplied to the EXEC function is more than 33 characters, it may cause Excel to crash. It is possible to work around the problem by switching the directory prior to using the EXEC function.

For example

=EXEC(&quot;Hard Disk 20:Applications:Microsoft Directory:Microsoft Word&quot;) can be replaced by the following two statements: =DIRECTORY(&quot;Hard Disk 20:Applications:Microsoft Directory&quot;) =EXEC(&quot;Microsoft Word&quot;) This behavior was fixed in Microsoft Excel version 3.00.
 * }