I was about to suggest this when I saw it had already been suggested. You
can set the initial file with ..
With Application.FileDialog(msoFileDialogFolderPicker)
.InitialFileName = "C:\etc"
.Show etc.
Enjoy,
Tony
> Many thanks it works fine
> 2 questions :
[quoted text clipped - 37 lines]
> >>
> >> Thanks
> Many thanks it works fine
> 2 questions :
> - Is it possible to predefine the folder that appears in the dialog
> - Any chance to have a solution for Windows 2000 (then macro i'm working
> on must work on XP and 2000)
> Thanks again
Windows 2000 or Office 2000? If you have Office XP or later, the solution I
have will work on any version of Windows.
If you are using Office 2000, then you can use this solution
Function BrowseFolder(Optional InitDir As String = "") As String
Dim strFolder As String
With Dialogs(wdDialogCopyFile)
If Len(InitDir) > 0 Then
.Directory = InitDir
End If
If .Display <> 0 Then
strFolder = .Directory
If Asc(strFolder) = 34 Then
strFolder = Mid$(strFolder, 2, Len(strFolder) - 2)
End If
BrowseFolder = strFolder
End If
End With
End Function
If you pass the InitDir parameter, the dialog will open at at folder.
otherwise it will open at the last used folder.

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Aldo - 02 Oct 2005 18:29 GMT
Many thanks - Works fine on Office 2000 under windows 2000
One more small detail : is it possible to change the dialog caption
Thanks
>> Many thanks it works fine
>> 2 questions :
[quoted text clipped - 26 lines]
> If you pass the InitDir parameter, the dialog will open at at folder.
> otherwise it will open at the last used folder.
Jonathan West - 03 Oct 2005 17:24 GMT
> Many thanks - Works fine on Office 2000 under windows 2000
>
> One more small detail : is it possible to change the dialog caption
Unfortunately not. for that, you would need to start looking outside Word
for solutions. Take a look here
How to allow the user to browse to and select a folder
http://www.word.mvps.org/FAQs/MacrosVBA/BrowsDialog.htm

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup