+ Reply to Thread
Results 1 to 7 of 7

Macro to print PDF in Excel 2013

  1. #1
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Macro to print PDF in Excel 2013

    Tried to record macro for this with little luck, is this possible?. All I want is a command button to open the excel print dialog and have it set to save as PDF. Can I name the workbook by
    value in A1?. Used CutePdf before but want to change to office PDF.

    Thanks Z
    Last edited by zplugger; 12-21-2013 at 12:58 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: Macro to print PDF in Excel 2013

    Please Login or Register  to view this content.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Macro to print PDF in Excel 2013

    Well I had the PDF Converter Printer selected and recorded this:

    Please Login or Register  to view this content.
    And it worked!
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  4. #4
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Macro to print PDF in Excel 2013

    How about a VBA Code to bring the Publish as Pdf or XPS Dialog box up ?

  5. #5
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Macro to print PDF in Excel 2013

    I can get the Dialog box to open, can I force it to be on PDF format?

    Application.Dialogs(xlDialogSaveAs).Show

  6. #6
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Macro to print PDF in Excel 2013

    After many attemps I got this to work,in case someone else needs this.

    Please Login or Register  to view this content.

  7. #7
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Macro to print PDF in Excel 2013

    Why do you want the dialog box open? Do you want the user to change the name or specifics? Wouldn't this be more efficient to put it all in the code?

    abousetta
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

+ 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. Macro(VBA) works too much slowly in excel 2013
    By piyushmerja in forum Excel Programming / VBA / Macros
    Replies: 26
    Last Post: 11-13-2014, 07:45 AM
  2. excel 2013 and autocad 2013 LT
    By drailed in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-25-2013, 03:05 PM
  3. [SOLVED] stop excel 2013 macro from auto run
    By igoodable in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-16-2013, 03:34 PM
  4. Macro issue may have when upgrade excel from 2003 to 2013
    By lhollis in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-30-2013, 03:21 AM
  5. Link Excel 2013 to Word 2013
    By drosen99 in forum Word Formatting & General
    Replies: 20
    Last Post: 02-26-2013, 08:20 PM

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