ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Dir function on Excel 2011 for Mac (https://www.excelbanter.com/excel-programming/447556-dir-function-excel-2011-mac.html)

watergate74[_2_]

Dir function on Excel 2011 for Mac
 
Hello,

I'm trying to write a script which returns all files and folders of a certain folder? This works fine on my Windoes pc but goes wrong on my broths Mac computer. Does anybody have an idea how to program this?

Thank you in advance.

watergate

isabelle

Dir function on Excel 2011 for Mac
 
hi,


In Microsoft Windows, The Dir function lets you use wildcards or
wildcards (* or?) To select multiple files.
On the Macintosh, these characters are considered characters valid file
names and can not be used as wildcards to specify multiple files.

Since the Macintosh does not support wildcards, use the file type to
identify groups of files.
You can use MacID to indicate the file type instead of file names. For
example, the following statement returns the name of the first TEXT file
in the current directory:

Dir ("Path", MacID ("TEXT"))

--
isabelle


Le 2012-11-03 10:11, watergate74 a écrit :
Hello,

I'm trying to write a script which returns all files and folders of a certain folder?
This works fine on my Windoes pc but goes wrong on my broths Mac computer. Does anybody have an idea how to program this?

Thank you in advance.

watergate




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

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