Av8tordude
Well-known Member
- Joined
- Oct 13, 2007
- Messages
- 1,075
- Office Version
- 2019
- Platform
- Windows
I found this code that will allow the user to browse the computer for a file. Its close to what I'm looking for, but not sure how to edit it to fit what I'm trying to accomplish.
I created a userform. On it, it has a label with the text "Example1". I have Browser button and a textbox. I would like the user to be able to select the folder, but not change the name of the downloaded file "Example1". Is there a way to allow the user to select the location on the computer, insert the Label's name "Example1" in the save dialogue box and not allow the user to change the name?
[VBA]txtFile = Application.GetSaveAsFilename(InitialFileName:=vbNullString, _
FileFilter:="Text Files (*.txt;*.csv), *.txt;*.csv", Title:="Select File Name")[/VBA]
I created a userform. On it, it has a label with the text "Example1". I have Browser button and a textbox. I would like the user to be able to select the folder, but not change the name of the downloaded file "Example1". Is there a way to allow the user to select the location on the computer, insert the Label's name "Example1" in the save dialogue box and not allow the user to change the name?
[VBA]txtFile = Application.GetSaveAsFilename(InitialFileName:=vbNullString, _
FileFilter:="Text Files (*.txt;*.csv), *.txt;*.csv", Title:="Select File Name")[/VBA]