ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   MacID VBA (https://www.excelbanter.com/excel-programming/372939-macid-vba.html)

[email protected]

MacID VBA
 
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


Janis

MacID VBA
 
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.

" wrote:

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



Janis

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

" wrote:

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




All times are GMT +1. The time now is 02:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com