I know how to let the user click on a button to navigate to a specific file to open.
Code:
Private Sub CommandButton2_Click()
Dim vaFiles As Variant
vaFiles = Application.GetOpenFilename()
ActiveSheet.Range("B9") = vaFiles
End Sub
I want a second button that will let the user navigate to a folder to save the .pdf file that my program creates.
The problem: The GetOpenFilename requires the user to click on a file. If there’s no file in the folder then there’s nothing the user can do.
Use the
Application.FileDialogobject