Michael
Thu Jul 28 08:40:59 CDT 2005
On Wed, 27 Jul 2005 19:34:01 -0700, labelladonna
<labelladonna@discussions.microsoft.com> wrote in
microsoft.public.word.vba.general:
>Dear folks:
>
>Is it possible to record, or create, a macro that opens a folder only (Word
>2003)? I tried to record all the necessary steps but it didn't allow me to
>stop recording unless I chose a specific file within the folder. Can anyone
>please teach me on this?
In VBA Help, look for "FileDialog Object". Example:
Dim objFD As FileDialog
Set objFD = Application.FileDialog(msoFileDialogFolderPicker)
If objFD.Show Then
Debug.Print objFD.SelectedItems(1)
Else
Debug.Print "Nothing selected."
End If
--
Michael Bednarek
http://mbednarek.com/ "POST NO BILLS"