+ Reply to Thread
Results 1 to 6 of 6

VBA to reset Print Options

  1. #1
    Forum Contributor
    Join Date
    03-27-2015
    Location
    Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    141

    Red face VBA to reset Print Options

    Dear Experts,

    As I constantly receive from colleagues with Excel workbooks containing variable number of worksheets for printing, and these workbooks may have different print settings.

    I wish to have codes written so that I can apply my own set of print options to "all" the worksheets in the workbook with regard to :
    1. Print to A4, Portrait (not Landscape)
    2. Print to 1 page only
    3. Print resolution 600dpi
    4. Print top margin 1, bottom margin 1, left margin 1.5, right margin 1.5
    5. Print in monotone (no cell coloring)

    Many thanks.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: VBA to reset Print Options

    Hello casoe,

    This macro will setup the worksheets for steps 1, 4, and 5. Steps 2 and 3 are local printer settings. These you will have to set manually.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: VBA to reset Print Options

    Hello casoe,

    This macro will setup the worksheets for steps 1, 4, and 5. Steps 2 and 3 are local printer settings. These you will have to set manually.
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    03-27-2015
    Location
    Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    141

    Re: VBA to reset Print Options

    Thx.
    1. Regarding the print resolution, can I actually alter the print resolution say from 300dpi to 600dpi which info seems to be carrying within each worksheet.
    2. Because usually I've problem when I receive Excel files with worksheet print resolution in 300dpi, it will cause to print in two pages instead of one page.

    Is there anything I can do ?
    Thx again.

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: VBA to reset Print Options

    Hello casoe,

    This should restrict the printout to 1 sheet at 600 DPI.

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    03-27-2015
    Location
    Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    141

    Re: VBA to reset Print Options

    Great! Everything works fine.
    Thanks so much.

+ 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. Dynamic Print Area Reset by Print Preview
    By dhpeter83 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-24-2015, 04:17 PM
  2. to update stop watch in excel with start/pause and reset options.
    By harry_appu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-25-2013, 01:42 PM
  3. Workbook Save/Reset options ?
    By ABabeNChrist in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-17-2010, 04:41 PM
  4. [SOLVED] why does the tools-options calculations reset to automatic after
    By Bearpaw in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-09-2006, 03:10 PM
  5. [SOLVED] How do I reset options to default values
    By BruceC in forum Excel General
    Replies: 1
    Last Post: 11-06-2005, 06:15 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