xlDialogSaveAs

T

Tim Cadieux

My clients want to be able to use the Excel Popup Dialog
box from my code, that way, if they want to change the
location and document name, they can. However, I've tried
every example I've seen, the below one comes right from
Microsoft but when I run it, the Dialog box is sitting on
my Desktop, and the File Type is a CSV. ???
To create a macro (SaveDialogFile) that will start the
Save As dialog box and select a specific file name and
path, use the following Visual Basic sample code:
Sub SaveDialogFile()
Application.Dialogs(xlDialogSaveAs).Show
("<drive>:\<path>\<filename>")
End Sub

Help??!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top