+ Reply to Thread
Results 1 to 6 of 6

Macro Export to PDF on MAC

  1. #1
    Registered User
    Join Date
    06-10-2015
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    47

    Macro Export to PDF on MAC

    Hello,

    I have this macro on my Mac Excel worksheet and when i try to export my sheets into PDF, i am getting an error message "Print Error while printing"

    Please Login or Register  to view this content.

    Can someone please tell me how to fix this?

    Thanks

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Macro Export to PDF on MAC

    is that actually the path for your desktop?
    C:\Users\my\Desktop\data\mydashboard.pdf
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    06-10-2015
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    47

    Re: Macro Export to PDF on MAC

    Quote Originally Posted by humdingaling View Post
    is that actually the path for your desktop?
    C:\Users\my\Desktop\data\mydashboard.pdf
    yes. It is correct.

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Macro Export to PDF on MAC

    That does not look like a Mac file path.

    But I did find this link. Ron DeBruin's Function MakePDF uses AppleScript, since Excel for Mac's vba doesn't work reliably

    http://www.rondebruin.nl/mac/mac005.htm
    Last edited by mikerickson; 05-31-2016 at 09:32 AM.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  5. #5
    Registered User
    Join Date
    06-10-2015
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    47

    Re: Macro Export to PDF on MAC

    Quote Originally Posted by mikerickson View Post
    That does not look like a Mac file path.

    But I did find this link. Ron DeBruin's Function MakePDF uses AppleScript, since Excel for Mac's vba doesn't work reliably

    http://www.rondebruin.nl/mac/mac005.htm
    Yes, i changed it to the correct the path in my script.

    And Ron DeBruin's Function only saves the pdf to the application folder. Is there any other working script?

    thanks

  6. #6
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Macro Export to PDF on MAC

    I haven't looked at DeBruin's code in detail, but if his location of the PDF could be altered to suit your needs.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Macro to export to pdf
    By suedavies in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-19-2018, 05:27 AM
  2. Macro to export and import a module and assigning different macro automatically
    By Libster78 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-14-2015, 06:31 PM
  3. Macro to Export a Sheet but also export a macro?
    By ChrisF79 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-20-2013, 12:26 PM
  4. I would need a macro to export data from base example workbook to export worbook
    By slato8 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-01-2012, 11:21 AM
  5. export to csv macro
    By PM4 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-01-2006, 04:30 PM
  6. Macro to Export XML
    By DangerMouse in forum Excel General
    Replies: 1
    Last Post: 04-10-2006, 09:49 AM
  7. export as vba macro
    By sali in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-09-2006, 09:45 AM

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