MacID VBA

P

passion_to_be_free

I am telling my VBA subroutine to go to a directory and open all the
csv files that are inside. However, the names of the files are always
changing, and I cannot predict what they will be. From what I've read
on the Excel help files, the only way to do this on a Mac is to use
this syntax:

Dir("Macintosh HD:Users:myUser:Desktop:Folder", MacID("insertIdhere"))

The only problem is, I can't find a list of MacID's for different file
types. Does anyone know the MacID for .csv files? Does anyone know
where I can find a list of these id's?

-Benjamin
 
J

Janis

I got it in a book. I found xlTextMac, xlCSVMac as the only Mac specific
ones. It should be in the VB Help under fileformat property.
 
J

Janis

Oh, sorry I forgot to put the numbers. Is that what you mean by ID's?
xlCSV = 6
xlTextMac = 19
 

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