Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Nel Nel is offline
external usenet poster
 
Posts: 7
Default Determine File Filter Selected

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:=vbN ullString,
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:=vb NullString,
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.


  #2   Report Post  
Posted to microsoft.public.excel.programming
Nel Nel is offline
external usenet poster
 
Posts: 7
Default Determine File Filter Selected

Forgot to mentioned that I am working on Excel 2000.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Determine what row is currently selected Dale Fye Excel Programming 2 August 17th 07 02:24 AM
Determine what row is currently selected Joel Excel Programming 2 August 17th 07 02:06 AM
Determine what row is currently selected Dale Fye Excel Programming 0 August 17th 07 01:59 AM
Determine which button was selected ?? dcarr Excel Programming 4 October 27th 04 11:02 PM
Determine Selected Cells John Tripp[_2_] Excel Programming 2 July 31st 03 02:48 PM


All times are GMT +1. The time now is 12:53 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"