+ Reply to Thread
Results 1 to 6 of 6

Print Selected Sheets in Black and White

  1. #1
    Forum Contributor delaing's Avatar
    Join Date
    07-16-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    192

    Print Selected Sheets in Black and White

    I did quite a bit of searching around for a solution on this and have not hit on one that seems to satisfy.

    For some reason, Excel seems to ignore the Printer Properties if the individual worksheet is NOT set to print in B&W. If one of my sheets has the Page Setup/Sheet/Print black and white box unchecked, then it will print the font colors, shading, etc. on the worksheet even though the Printer Properties are setup for B&W.

    From what I've read, VBA cannot affect the Printer Properties from within Excel. But, if I can figure out how to set the Page Setup to B&W for the selected sheets, that seems to force it B&W at Print time.

    Here is the snippet of code where the sheets are selected and prepped for printing:
    Please Login or Register  to view this content.
    Is there a way that I can modify the With section to affect the Page Setup or does this need to happen prior to this and how?

    Thank you,
    Delain

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Print Selected Sheets in Black and White

    Try something like this...

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Contributor delaing's Avatar
    Join Date
    07-16-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: Print Selected Sheets in Black and White

    This worked great, thanks for the quick response.

    How could we change this so I tie it to a Workbook Open event and have the PageSetup.BlackAndWhite = True be applied to all sheets of the workbook?
    This would help when the user wants to print a single sheet or group of sheets. I can't figure out the Object to connect this property to in this scenario.

    Thank you,
    Delain

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Print Selected Sheets in Black and White

    Please Login or Register  to view this content.
    Last edited by AlphaFrog; 08-26-2016 at 11:50 AM.

  5. #5
    Forum Contributor delaing's Avatar
    Join Date
    07-16-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: Print Selected Sheets in Black and White

    And this will work for any workbook that the user opens? Or is this event restricted to use on a per-workbook only basis?

    I don't use too many Event procedures yet, so not well-versed.

    Thanks for your great help on this.

    Delain

  6. #6
    Forum Contributor delaing's Avatar
    Join Date
    07-16-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: Print Selected Sheets in Black and White

    AF, I think I figured it out.
    Simply took your last bit of code and put it in the Print routine as:
    Please Login or Register  to view this content.
    This way, it changes the setting for all of the sheets when this Print routine is run; regardless, of sheets being selected.

    I was, though, looking for a way to change the setting for all sheets within when any workbook is opened and the user simply does a Ctrl-P to print a sheet.

    Thank you,
    Delain

+ 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 to print Black and white
    By lxx28 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-17-2016, 08:32 AM
  2. Print Text in Color, Pictures Black & White
    By FallingDown in forum Word Formatting & General
    Replies: 4
    Last Post: 09-30-2013, 06:11 AM
  3. Replies: 1
    Last Post: 08-06-2012, 04:56 PM
  4. Is there a way to tell Excel to make a graph in black and white?
    By SanFranciscoSarah in forum Excel General
    Replies: 4
    Last Post: 11-18-2011, 04:52 AM
  5. C#/.NET add-in; copy text as black and white
    By jeff3312000 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-22-2009, 03:07 AM
  6. [SOLVED] Color Excel Spreasheet print previews in black/white. Reason?
    By Jpope in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-16-2006, 05:08 PM
  7. [SOLVED] convert a graph to black and white
    By Help with Thesis in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-26-2005, 05: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