+ Reply to Thread
Results 1 to 7 of 7

Save as PDF Macro for Excel 2011 for Mac

  1. #1
    Registered User
    Join Date
    09-22-2012
    Location
    UK
    MS-Off Ver
    Excel 2011 For Mac
    Posts
    3

    Save as PDF Macro for Excel 2011 for Mac

    Hi All,

    I'm creating a sales order database on Excel 2011 for Mac and need a save as PDF macro to save a specific worksheet with the filename corresponding to a specific cell.

    I have spent 3 days searching for something related to this, including threads on this forum, but nothing has worked so I signed up and thought I'll ask if anyone could help me out.

    My knowledge of programming is virtually none existent by the way.

    Thank you!

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

    Re: Save as PDF Macro for Excel 2011 for Mac

    Please Login or Register  to view this content.
    for instance
    Last edited by JosephP; 09-22-2012 at 06:26 PM.
    Josie

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

  3. #3
    Registered User
    Join Date
    09-22-2012
    Location
    UK
    MS-Off Ver
    Excel 2011 For Mac
    Posts
    3

    Re: Save as PDF Macro for Excel 2011 for Mac

    Thanks Joseph, but it doesn't work. I get an error saying: "Method 'ExportAsFixedFormat' of object '_worksheet' failed.

    Any solutions to this?

    Also I would like to save the pdf in a specific folder, is there anywhere of specifying this?

  4. #4
    Registered User
    Join Date
    09-22-2012
    Location
    UK
    MS-Off Ver
    Excel 2011 For Mac
    Posts
    3

    Re: Save as PDF Macro for Excel 2011 for Mac

    Ok, so I tried it again and it worked at first, but it was saving the worksheet over many pages in pdf form. So I went into file>print on excel and set it to "Fit to 1 page". When I did this the macro stopped working and gave me the same error as above. Tried it a couple more times but it still doesn't work.

    Anyone able to help me? Much appreciated!

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

    Re: Save as PDF Macro for Excel 2011 for Mac

    have a look here http://www.rondebruin.nl/mac.htm#PDF

    there is a bug that causes the file name to include the sheet name but the basic code is
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    09-30-2012
    Location
    Paris
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Save as PDF Macro for Excel 2011 for Mac

    Hello, i'm french so i don't understand everything but i'm trying. I'm trying to use your code JP put it does't work, they say to me that there is a problem whith : savefile = ActiveWorkbook.Path & Application.PathSeparator & Sheets("sheet1").Range("a1").Value

    ps : i wound link to save my pdf sheets on the desktop and i would like to chose which sheet i want to save in pdf.

    Thx for your help

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

    Re: Save as PDF Macro for Excel 2011 for Mac

    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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