![]() |
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. |
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. |
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. |
All times are GMT +1. The time now is 06:08 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com