PC Review


Reply
Thread Tools Rate Thread

Application.FileDialog(msoFileDialogSaveAs)

 
 
greg
Guest
Posts: n/a
 
      18th Feb 2008
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


 
Reply With Quote
 
 
 
 
ward376
Guest
Posts: n/a
 
      18th Feb 2008
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

 
Reply With Quote
 
cliu23@gmail.com
Guest
Posts: n/a
 
      21st Feb 2008
On Feb 18, 10:52 am, "greg" <iu...@ghfhg.com> wrote:
> 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


http://msdn2.microsoft.com/en-us/library/aa219834(office.11).aspx

I am not sure if it's the problem.
 
Reply With Quote
 
greg
Guest
Posts: n/a
 
      21st Feb 2008
thanks, i will take a look.


"greg" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application.FileDialog(msoFileDialogOpen) H.A. de Wilde Microsoft Excel Programming 1 4th Jun 2006 09:56 PM
application.filedialog =?Utf-8?B?VG9tSGlua2xl?= Microsoft Access Form Coding 1 22nd Jun 2005 03:14 PM
Re: Alternative to Application.FileDialog (please)? Rob Bovey Microsoft Excel Programming 0 9th Sep 2004 11:20 AM
Application.FileDialog not available in Outlook? Mark S. Microsoft Outlook VBA Programming 2 9th Apr 2004 11:53 AM
Application.FileDialog Edward Harford Microsoft Access Form Coding 1 5th Feb 2004 02:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:32 PM.