Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Request Directory From User - VBA Code
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. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Request Directory From User - VBA Code
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) wrote in message oups.com... 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. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Request Directory From User - VBA Code
If you need to support versions prior to XL2002, use the BrowseForFolder
API. http://www.cpearson.com/excel/BrowseFolder.htm NickHK wrote in message oups.com... 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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Can I request user in input variable value within formula? | Excel Worksheet Functions | |||
Request for a code | Excel Discussion (Misc queries) | |||
prompt user to specify a directory | Excel Programming | |||
Code to raise Directory request box | Excel Worksheet Functions | |||
Knowledge gained from Access to Excel VBA Automation User request | Excel Programming |