W
Win
I am trying to duplicate some Excel code in Word and
cannot find the correct command. Basically, I have a
simple Excel macro that changes the directory and launched
the Open file dialog box and then waits for me to manually
select which file I want to open. Then it opens the file
and ends the macro. I use this macro several times a week
to go to a server where certain files are stored, thus
avoiding always have to manually change the path in the
Open Files dialog box. I started with the Excel code, but
I cannot find the Word equivalent (if there is one) to the
Excel "Application.GetOpenFilename" command. I can make
it work if I name the specific file, but it would be
clumsy to have half a dozen buttons doing the same thing,
only with different file names attached.
Sorry if this is a novice question, but that's what I am
unless the VBA is Excell related. Appreciate any
suggestions. Thanks.
Win
cannot find the correct command. Basically, I have a
simple Excel macro that changes the directory and launched
the Open file dialog box and then waits for me to manually
select which file I want to open. Then it opens the file
and ends the macro. I use this macro several times a week
to go to a server where certain files are stored, thus
avoiding always have to manually change the path in the
Open Files dialog box. I started with the Excel code, but
I cannot find the Word equivalent (if there is one) to the
Excel "Application.GetOpenFilename" command. I can make
it work if I name the specific file, but it would be
clumsy to have half a dozen buttons doing the same thing,
only with different file names attached.
Sorry if this is a novice question, but that's what I am
unless the VBA is Excell related. Appreciate any
suggestions. Thanks.
Win