Excel: Selecting Parent Directory with the DIRECTORY CommandLast reviewed: November 2, 1994Article ID: Q72602 |
SUMMARYTo select the parent directory of the current directory from within a Microsoft Excel macro, use the command DIRECTORY("::"). The command sets the current directory to be the parent directory of the previously current directory.
MORE INFORMATIONFor example, if the current directory is set to "MacHD:Excel:Files", where "Files" is a folder in the "Excel" folder, which is on the hard drive "MacHD", to change the directory to "MacHD:Excel", use the command:
=DIRECTORY("::") |
KBCategory: kbother
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |