Application.FileDialog(msoFileDialogSaveAs)

G

greg

Hello,
If I want to create my own save as dialog. Using the
Application.FileDialog.
But I want to have my own file extension. Can that be done?
This does not seem to work?

thanks

With Application.FileDialog(msoFileDialogSaveAs)

..Filters.Clear
..Filters.Add "Run Data File", "*.csv"
..AllowMultiSelect = False
..Show
..Execute

End With
 
W

ward376

Try putting quotes around your file name - "MyCustomFile.mcf". You'll
still have to specify the file type and watch that your extension
isn't a duplicate of an extension already associated with an
application.

Cliff Edwards
 

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