C
Claudia
A week or so ago I posted requesting a code to open specific subdirectories.
Perry kindly replied with the following code which works perfectly (but, see
below code for my question):
Dim f As FileDialog
Set f = Application.FileDialog(msoFileDialogOpen)
With f
.InitialFileName = "W:\13\"
If .Show Then .Execute
End With
As I said, that works great - we have 15 subdirectories, and I have a button
to run a macro to open each subdirectory on each user's toolbar. So far, so
good. However a new problem has surfaced because of the macro: When the users
run the macro to open a directory and pull up a document, the File -> Open
command does not automatically open to the same subdirectory from which the
document was opened. It will open to whichever directory is specified in
their File Location options *or* to whichever subdirectory was last opened
using the File -> Open command.
Can I create a macro that will open the subdirectory that was originally
opened with my macro? If there is, then I will assign it to a button on each
user's toolbar, so they can click that instead of the File Open button.
Claudia Carvalho
Perry kindly replied with the following code which works perfectly (but, see
below code for my question):
Dim f As FileDialog
Set f = Application.FileDialog(msoFileDialogOpen)
With f
.InitialFileName = "W:\13\"
If .Show Then .Execute
End With
As I said, that works great - we have 15 subdirectories, and I have a button
to run a macro to open each subdirectory on each user's toolbar. So far, so
good. However a new problem has surfaced because of the macro: When the users
run the macro to open a directory and pull up a document, the File -> Open
command does not automatically open to the same subdirectory from which the
document was opened. It will open to whichever directory is specified in
their File Location options *or* to whichever subdirectory was last opened
using the File -> Open command.
Can I create a macro that will open the subdirectory that was originally
opened with my macro? If there is, then I will assign it to a button on each
user's toolbar, so they can click that instead of the File Open button.
Claudia Carvalho