Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need Mac File Type Code for CSV formats

Hi All,

I'm trying to set the FileFilter for a GetSaveAsFileName function in
macro to CSV. I can do it for the PC Version, but for the Mac I nee
the File type code for these formats (CSV Mac, CSV Windows and CS
MS/DOS | OS/2).

I have looked everywhere but because Apple doesn't release them, I can
find them at all.

Can anyone help me?

Thanks you heaps in advance.

Lia

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Need Mac File Type Code for CSV formats

The File Type code for all of the text file types you specified is
"TEXT".

Note that while Apple may keep a list of File Type Codes somewhere, they
don't assign them - that's up to the application developer.

In article ,
Sportiva wrote:

I'm trying to set the FileFilter for a GetSaveAsFileName function in a
macro to CSV. I can do it for the PC Version, but for the Mac I need
the File type code for these formats (CSV Mac, CSV Windows and CSV
MS/DOS | OS/2).

I have looked everywhere but because Apple doesn't release them, I cant
find them at all.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need Mac File Type Code for CSV formats

Thanks for your reply.

I've did try TEXT but then the GetSaveAsFileName window opens wit
filename.txt, instead of filename.csv as a default.

I'm trying to make the process as simple as possible for a userbas
that has a lot of less computer-savvy people. Is there anyway that yo
know to do that?

On the PC, I set the file filter as "CSV Files, *.csv" and this doe
that.

I also need this to restrict the GetOpenFilename to CSV files as well
so that is all they can open.

Thanks again for your help,

Lia

--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need Mac File Type Code for CSV formats


I have the identical issue as you described. I'm trying to come up with
PC/MAC comnpatible way for a user to save a CSV file, using
GetSaveAsFileName. All's well on the PC side, but not so on the Mac.
Even when I specify FileFilter:="Text", the default filename displayed
ends in .xls.

Has anyone come up with a way to use .GetSaveAsFileName and display the
filename with the desired file type (in my case, .csv)?

Paul


--
Paul Laba
------------------------------------------------------------------------
Paul Laba's Profile: http://www.excelforum.com/member.php...o&userid=23739
View this thread: http://www.excelforum.com/showthread...hreadid=225968

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
Saved *.csv file gives SYLK file type warning upon Excel 2003 open Tom Excel Discussion (Misc queries) 5 March 19th 08 03:15 PM
How to modify the code for different type of input? Eric Excel Worksheet Functions 1 September 1st 07 03:58 PM
How to modify the code for different type of input? Eric Excel Discussion (Misc queries) 2 September 1st 07 12:30 AM
type mismatch in this code Jay Baxter Excel Programming 4 February 26th 04 06:36 PM
Code to Change Chart Type Pedro Marques Excel Programming 1 July 23rd 03 01:41 PM


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

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

About Us

"It's about Microsoft Excel"