+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    02-15-2010
    Location
    Isle of Man
    MS-Off Ver
    Excel 2003
    Posts
    4

    Excluding formatting from print output

    Hi Everyone

    Can anyone advise how i can shade cells (to prompt completion) but when printing, exclude shading from the printed document?

    Thanks very much
    regards
    John

  2. #2
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: Excluding formatting from print output

    Hi,

    There are several solutions ...
    Guess the simplest is for you to design a print macro, which before printing will remove shading from cells ...
    To create and test your macro, turn on the macro recorder and perform the whole sequence once ...

    HTH

  3. #3
    Registered User
    Join Date
    02-15-2010
    Location
    Isle of Man
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Excluding formatting from print output

    Hi JeanRage

    Thanks for you reply. I'm not an excel wizard by any stretch (LOL), but i presume what you are saying is set up a macro which removes the shading on the spreadsheet (and record it), before recording the actual process you go through to print the document. Would that apply to all worksheets in a spreadsheet?

    Thanks
    John

  4. #4
    Registered User
    Join Date
    02-15-2010
    Location
    Isle of Man
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Excluding formatting from print output

    Hi JeanRage

    Thanks for you reply. I'm not an excel wizard by any stretch (LOL), but i presume what you are saying is set up a macro which removes the shading on the spreadsheet (and record it), before recording the actual process you go through to print the document. Would that apply to all worksheets in a spreadsheet?

    Thanks
    John

  5. #5
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: Excluding formatting from print output

    Hi,

    Once your work is done
    1. Save your workbook
    2. Use the following macro, before your print ...
    Sub RemoveShading()
    ActiveSheet.Cells.Interior.ColorIndex = xlNone
    End Sub
    3. Quit without saving in order to keep your cells shaded

    HTH

  6. #6
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,477

    Re: Excluding formatting from print output

    just go file /page set up/sheet tab /select black and white
    interior colours will not print and font will be black
    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Registered User
    Join Date
    02-15-2010
    Location
    Isle of Man
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Excluding formatting from print output

    Excellent! Thanks very much martindwilson

  8. #8
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,042

    Re: Excluding formatting from print output

    Supporting Martin's solution, I think the challenge would be to restore the cell shading after the macro has removed it. Taking it away is easy. Getting it back would be harder, and I assume you'd want the user to see the cell colors after a print, no?
    teylyn
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

Thread Information

Users Browsing this Thread

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

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.2.0