+ Reply to Thread
Results 1 to 13 of 13

Colorcoding cells

  1. #1
    Registered User
    Join Date
    07-19-2006
    Location
    Jamaica
    Posts
    86

    Colorcoding cells

    Hi, is there a way to colorcode cells in a sheet to easily identify them and at the same time not print the cell as colored?

    I have a few sheets I update on a monthly basis and usually I enter text into one or two cells cell and formulas then give me the data I need. Sometimes I share the files with some collegues, and it would make it easier for them to read if the input cells had some kind of color coding.

    I know how to do using macros but this should be relatively simple and Excel probably can do it already.

    /Møller
    --
    M?ller

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    You can have a working convention ...
    say all blue cells are input cells ...

    Carim

  3. #3
    Registered User
    Join Date
    07-19-2006
    Location
    Jamaica
    Posts
    86
    Sure, but I don't wan't the blue fill to be printed. The choice of color is not the problem.

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Quote Originally Posted by c991257
    Sure, but I don't wan't the blue fill to be printed. The choice of color is not the problem.
    Go to Page Set up > Sheet, tick print Black & White

  5. #5
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Ok I understand ...
    you could have a tiny macro which turns on and off the colorcoding to allow for printing in black ...

    HTH
    Carim

  6. #6
    Registered User
    Join Date
    07-19-2006
    Location
    Jamaica
    Posts
    86
    Quote Originally Posted by oldchippy
    Go to Page Set up > Sheet, tick print Black & White
    Won't work because I also have graphs on the page.

  7. #7
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Well ...

    your macro would only handle worksheet cells ...
    so nigun problemo ...

    Carim

  8. #8
    Registered User
    Join Date
    07-19-2006
    Location
    Jamaica
    Posts
    86
    Quote Originally Posted by Carim
    Well ...

    your macro would only handle worksheet cells ...
    so nigun problemo ...

    Carim
    Yeah that simple enough. Instead of having two buttons in the sheet, is there a way to use a tick box? I can't see how I make it run two macros depending on tick/no tick.

    /Møller

  9. #9
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Yes, you are right you can have options buttons Yes - No type ...
    with a linked cell which will show as a value either 1 or 2 ...

    Then, in your macro, you only have to test this specific range for its value ...

    HTH
    Carim

  10. #10
    Forum Contributor
    Join Date
    07-05-2006
    Location
    Canada
    MS-Off Ver
    2003, 2007
    Posts
    581
    Quote Originally Posted by c991257
    Yeah that simple enough. Instead of having two buttons in the sheet, is there a way to use a tick box? I can't see how I make it run two macros depending on tick/no tick.

    /Møller
    Here's an example for you that I use for one of my sheets:

    Please Login or Register  to view this content.
    Basically, I have a check box (set to not print) on the page, and this subroutine is attached to it as the macro to run.

    The check box has a cell (which I've called "GG_Checkbox_Value" because I lack imagination) where the value is stored (ie. either true or false), and my subroutine checks the value of this cell to determine what needs to be done.

    Scott

  11. #11
    Registered User
    Join Date
    07-19-2006
    Location
    Jamaica
    Posts
    86
    But shouldn't you be able to avoid the TRUE/FALSE cell if you use a tick from the control toolbox instead of the one from forms?

    /Møller
    Last edited by c991257; 11-07-2006 at 03:01 PM.

  12. #12
    Forum Contributor
    Join Date
    07-05-2006
    Location
    Canada
    MS-Off Ver
    2003, 2007
    Posts
    581
    Quote Originally Posted by c991257
    But shouldn't you be able to avoid the TRUE/FALSE cell if you use a tick from the control toolbox instead of the on from forms?

    /Møller
    The code still works, you just reference the your checkbox instead of the cell.

    Scott

  13. #13
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394
    Why don't you just write a macro that turns off the colours before it prints.

    Turn on macro recording and re-set all the colours. This will be your "turn colours back on" macro. call it

    Please Login or Register  to view this content.
    Then put this macro in the Workbook module

    Please Login or Register  to view this content.
    Only problem is it wont turn the colours back on automatically after a print (ther is no AfterPrint event). You could change the approach slightly, and put a "print without colour button" on the sheet that first turns off colours, prints the sheet, then turns back on colours.

    Matt

+ Reply to Thread

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.6.0 RC 1