PC Review


Reply
Thread Tools Rate Thread

Determine File Filter Selected

 
 
nEL
Guest
Posts: n/a
 
      15th Sep 2008
Hi,

I have a dialog box that prompts the user to save the data in excel into a
fixed length text file.

Dim FileName As Variant
FileName = Application.GetSaveAsFilename(InitialFileName:=vbNullString,
FileFilter:="Format 01 , *.dat, Format 02 , *.dat")

Format 01 will save the text file in "A" defined format.
Format 02 will save the text file in "B" defined format.

Example of "A" defined format: "A1".Value, "A2".Value
Example of "B" defined format: "A2".Value, "A1".Value

The difference in both formats are just the difference in the arrangement of
the data. Both files must be in"dat" format.

I have tried

"Application.GetSaveAsFilename(InitialFileName:=vbNullString,
FileFilter:="Format 01 , *.dat, Format 02 , *.txt")"

where i can identify by the extension, but my client wants the dialog to
display "*.dat" for all formats that is shown instead of "Format 01 (*.dat"),
Format 02 (*.txt)".

I would like to know how can I determine which is the FileFilter is selected
by the users.


 
Reply With Quote
 
 
 
 
nEL
Guest
Posts: n/a
 
      15th Sep 2008
Forgot to mentioned that I am working on Excel 2000.
 
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
Determine what row is currently selected =?Utf-8?B?RGFsZSBGeWU=?= Microsoft Excel Programming 2 17th Aug 2007 02:24 AM
RE: Determine what row is currently selected =?Utf-8?B?Sm9lbA==?= Microsoft Excel Programming 2 17th Aug 2007 02:06 AM
RE: Determine what row is currently selected =?Utf-8?B?RGFsZSBGeWU=?= Microsoft Excel Programming 0 17th Aug 2007 01:59 AM
Work with listview - need to determine selected file Gary Microsoft C# .NET 0 11th Jan 2007 12:25 PM
Determine the currently selected field & row Terry Hornsby Microsoft Access Queries 6 24th Dec 2003 05:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:47 PM.