Request Directory From User - VBA Code

  • Thread starter Thread starter wkbailey2
  • Start date Start date
W

wkbailey2

I am trying to find the VBA code to prompt the user for the directory
to save a file. The code will define the files name, I just need the
user to direct the program to the folder which the user would like the
file saved in. I have been searching all over the internet but cannot
find the write answer. Please help.
 
Since XL2002 there is a browse dialog.
With Application.FileDialog(msoFileDialogFolderPicker)
.Show


MsgBox .SelectedItems(1)


End With


Look up FileDialog in the VBA help


--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top