Sub StoreUserData2()
If SaveFileDialog1.ShowDialog() Then InputBox(MessageStor, TitleStor, SaveFileDialog1.ShowDialog)
WriteUserFile()
End Sub
It allows me to browse and/or create a file, but when I click the save button it transfers the new files directory to anothe savefiledialog box. I cant get it to close the search and place the path in the InputBox.
You’re calling
ShowDialogagain in theInputBoxparameter.This shows the dialog again. (as you can expect from the name)
You’re probably looking for the
FileNameproperty.