+ Reply to Thread
Results 1 to 8 of 8

simple im sure change from print to print to PDF

  1. #1
    Registered User
    Join Date
    08-01-2016
    Location
    adelaide
    MS-Off Ver
    2013
    Posts
    6

    simple im sure change from print to print to PDF

    im using the below code

    Please Login or Register  to view this content.
    and want to change to print to PDF.

    thanks all

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,940

    Re: simple im sure change from print to print to PDF

    Here is a link that should help

    http://www.contextures.com/excelvbapdf.html
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    08-01-2016
    Location
    adelaide
    MS-Off Ver
    2013
    Posts
    6

    Re: simple im sure change from print to print to PDF

    thanks Alan but I am a noob here.

    I need to work the same eg. if 1 in cell then print that worksheet.

    is there a easy line change eg changing from If ws.Range("A1") <> "" Then
    ws.PrintOut??

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,940

    Re: simple im sure change from print to print to PDF

    Look at answer #2 here http://superuser.com/questions/89302...df-dopdf-ver-7

    You are changing the file type, so it needs to export and not print.

  5. #5
    Registered User
    Join Date
    08-01-2016
    Location
    adelaide
    MS-Off Ver
    2013
    Posts
    6

    Re: simple im sure change from print to print to PDF

    this pds's entire workbook I just sheets with text in cells eg A1.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,940

    Re: simple im sure change from print to print to PDF

    Here is some code that I tested and it exports the specified range as a PDF. Change up the range and the filename and path as needed.

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    08-01-2016
    Location
    adelaide
    MS-Off Ver
    2013
    Posts
    6

    Re: simple im sure change from print to print to PDF

    thank you worked a treat

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,940

    Re: simple im sure change from print to print to PDF

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Replies: 1
    Last Post: 03-24-2016, 05:28 PM
  2. Change from last print preview selection to the Print Active Sheets
    By Tiger20 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-13-2015, 09:53 AM
  3. Simple Print out Query
    By JDBEx in forum Excel General
    Replies: 1
    Last Post: 09-26-2015, 09:37 AM
  4. Disabled print toolbar and menu but Print Macro button cannot print also...
    By zein97 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-22-2014, 01:42 PM
  5. Set print area of selected range then print preview if ok then print the document!
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2014, 07:10 AM
  6. VBA to set print range, open box asking for print qty, print, then redefine print area
    By galvinpaddy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-11-2012, 06:43 PM
  7. Problems with simple print macros
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-12-2005, 02:00 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