|
If you are using Word 2002 (Office XP) or later, you can use the
built-in FileDialog object.
With Application.FileDialog(msoFileDialogFolderPicker)
.AllowMultiSelect
= False
If .Show <> 0 Then
MsgBox "You chose " & .SelectedItems(1)
Else
MsgBox "Dialog cancelled"
End If
End With
The above is a simple code sample, you can do
more in terms of setting the dialog caption and the starting folder.
Look up the details in the VBA Help.
|