We're using Word 2003 on Widows XP. Is there a way to
write VB code to just open the File-Open (Ctl-O) dialog
box and not specify another subdirectory or an actual
file to open? And if so, does anyone know how to write
the code?

I want to be able to jump quickly from directory to
directory on the network by writing different macros and
assigning them to keystrokes. For example, I can change
the default directory by using:
ChangeFileOpenDirectory "W:\1\"
But then I also want the macro to actually pull up the
Open File dialog box so I can pick a sub-directory but
not a specific file.

Is this possible? Any help is very much appreciated.

CJ

Re: Code a Macro for File Open Dialog Box by Jezebel

Jezebel
Thu Jul 08 18:14:47 CDT 2004

Use the BrowseForFolder API call. There's example code here, amongst other
places: http://www.developerfusion.com/show/2127/



"CJH" <anonymous@discussions.microsoft.com> wrote in message
news:2979501c46539$a709e000$a401280a@phx.gbl...
> We're using Word 2003 on Widows XP. Is there a way to
> write VB code to just open the File-Open (Ctl-O) dialog
> box and not specify another subdirectory or an actual
> file to open? And if so, does anyone know how to write
> the code?
>
> I want to be able to jump quickly from directory to
> directory on the network by writing different macros and
> assigning them to keystrokes. For example, I can change
> the default directory by using:
> ChangeFileOpenDirectory "W:\1\"
> But then I also want the macro to actually pull up the
> Open File dialog box so I can pick a sub-directory but
> not a specific file.
>
> Is this possible? Any help is very much appreciated.
>
> CJ
>
>



Re: Code a Macro for File Open Dialog Box by CJH

CJH
Fri Jul 09 12:32:52 CDT 2004

Thanks for the starting place. It's going to take me a
bit to wade through this code, but hopefully I'm on the
right track now.

CJ

>-----Original Message-----
>Use the BrowseForFolder API call. There's example code
here, amongst other
>places: http://www.developerfusion.com/show/2127/
>
>
>
>"CJH" <anonymous@discussions.microsoft.com> wrote in
message
>news:2979501c46539$a709e000$a401280a@phx.gbl...
>> We're using Word 2003 on Widows XP. Is there a way to
>> write VB code to just open the File-Open (Ctl-O) dialog
>> box and not specify another subdirectory or an actual
>> file to open? And if so, does anyone know how to write
>> the code?
>>
>> I want to be able to jump quickly from directory to
>> directory on the network by writing different macros
and
>> assigning them to keystrokes. For example, I can
change
>> the default directory by using:
>> ChangeFileOpenDirectory "W:\1\"
>> But then I also want the macro to actually pull up the
>> Open File dialog box so I can pick a sub-directory but
>> not a specific file.
>>
>> Is this possible? Any help is very much appreciated.
>>
>> CJ
>>
>>
>
>
>.
>