#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 360
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 360
Default 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


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



All times are GMT +1. The time now is 04:45 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"