Excel for Mac 2011 - Save as PDF to given filepath

Using Excel for Mac 2011 I have created a single page report that i want to save as a pdf using a macro.  I want to save to a folder called "Report" on the desktop.  On a PC i can use the GetOpenFilename command to select the folder and then the code will create a file with a specific filename (taken from a cell within the sheet).  I am having trouble doing this on a mac however - i know there is some commentary online about this matter but i have so far been unsuccessful.  
2 questions:
How to specify the filepath
VBA syntax for creating the pdf
Help and guidance would be appreciated.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

bbaoIT ConsultantCommented:
it seems not only you looking for a universal way to select a file using macro in Excel for both Windows and Mac.

first you need to apply all updates and patches for Excel 2011 for Mac, then if below discussion for details.

bbaoIT ConsultantCommented:
FYI - official how-to article

Programmatically Selecting Files in Excel for Windows and Excel for the Mac

Pls try
Sub SavePDFMacro() 
    Dim folderPath As String
    Dim RootFolder As String

    On Error Resume Next
    RootFolder = MacScript("return (path to desktop folder) as String")
    'Or use RootFolder = "Macintosh HD:Users:YourUserName:Desktop:TestMap:"
    folderPath = MacScript("(choose folder with prompt ""Select the folder""" & _
    "default location alias """ & RootFolder & """) as string")
    On Error GoTo 0

    If folderPath <> "" Then
        ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _ 
            folderPath &  ":" & Range("A1").Value, Quality:= _ 
            xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, _ 
    End If
End Sub

Open in new window

for reference


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JohnNZExcelAuthor Commented:
Problem solved and knowledge gained.  Created 2 procedures: 1 using the mac script to choose a folder and the other to save to a predetermined folder in the documents area.  Many thanks to the gurus.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.