+ Reply to Thread
Results 1 to 3 of 3

VBA GetOpenFilename does not work on Mac?

  1. #1
    Registered User
    Join Date
    11-29-2012
    Location
    Bay Area, CA
    MS-Off Ver
    Excel Mac 2011
    Posts
    13

    VBA GetOpenFilename does not work on Mac?

    Hi

    I'm new in the forum and trying to learn VBA. I got this great code from a member here and I forgot to mention that I'm using Excel for Mac 2011.

    When I try to run the macro, I get an error on the line in red in the code below. I did a research for the error and found the following:

    "On a Mac, the filefilter is not working and it is not possible to select more than one file.
    Also, ChDir is not working like in Windows to set the folder that will open with GetOpenFilename. But we can use a combination of VBA and Applescript."


    Does anybody knows how to fix it? Below, it's part of the code.
    Thanks,

    -----------------------------------

    Please Login or Register  to view this content.
    Last edited by JMaug; 12-01-2012 at 07:46 PM. Reason: Added code tags, as per forum rules. Don't forget!

  2. #2
    Registered User
    Join Date
    11-29-2012
    Location
    Bay Area, CA
    MS-Off Ver
    Excel Mac 2011
    Posts
    13

    Re: VBA GetOpenFilename does not work on Mac?

    It seems many people have the same issue. I found this comment on the web. The person found the solution.

    Now, where should I put that statement?

    Thanks.

    ----------------------

    Re: Excel 2011 Mac - VBA - GetData (path)
    Hi,

    I have finally managed to do it with the following method:

    Please Login or Register  to view this content.
    Hope it helps you out if you didn't find a way around it yet.

    Luis
    Last edited by JBeaucaire; 12-03-2012 at 01:25 AM.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: VBA GetOpenFilename does not work on Mac?

    If that takes care of your original query, please select Thread Tools from the menu above and mark the thread as solved. Thanks.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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