+ Reply to Thread
Results 1 to 4 of 4

List directory (folder) names for Mac Excel

  1. #1
    Registered User
    Join Date
    08-03-2012
    Location
    London, England
    MS-Off Ver
    Excel Mac 2011
    Posts
    2

    List directory (folder) names for Mac Excel

    Hi there


    I am completely new to the idea of macros and VBA, but excited by the potential. I have a book project I am working on, and would like to list all of the folder names from a (massive) set of incoming projects organised into folders.
    I found this post (http://www.excelforum.com/excel-prog...directory.html) which seems to do the trick for Windows based Excel, but not Mac - I get the message

    'Runtime Error 428 Active X component can't create object' - I think thi sis due to OSX not being compatible with VBA 'objects' - is that right?

    Here is the script below - anyone have any clues as to how I can configure it for Mac OSX Excel?

    thanks for your time!



    Please Login or Register  to view this content.
    Last edited by arlu1201; 08-03-2012 at 04:13 AM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: List directory (folder) names for Mac Excel

    Welcome to the forum.

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. If you need more information on how to use them, check my signature.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: List directory (folder) names for Mac Excel

    you can't use the scripting runtime on a mac and dir won't give you folder sizes (it also doesn't work with file names longer than 27/28 characters) so I reckon you'd need apple script for that. I'd try asking on macscripter.net
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  4. #4
    Registered User
    Join Date
    08-03-2012
    Location
    London, England
    MS-Off Ver
    Excel Mac 2011
    Posts
    2

    Re: List directory (folder) names for Mac Excel

    Oh well - simple trick is to simply copy-paste in the finder and then into text edit - to excel... but only works up to a certain point!



    thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1