+ Reply to Thread
Results 1 to 7 of 7

showing unlocked cells?

Hybrid View

  1. #1
    Registered User
    Join Date
    06-26-2006
    Posts
    44

    showing unlocked cells?

    I want to shade some cells to show that they're unlocked (which cells are ok to edit numbers in while the other numbers are calculated automatically), but I don't want them to print out in a different color -- I want those cells to print out in white just like every other cell.

    Is this possible?

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: showing unlocked cells?

    In truth it depends partly on how you're formatting the unlocked cells initially... my immediate thought would be to use Conditional Formatting in conjunction with a "flag" cell which determines as to whether or not you're in Print Mode (the value of which could be set manually or via the BeforePrint event if Macros can be enabled), ie assume you select the unlocked cells and apply a Conditional Format rule of:

    =$Z$1=0

    and set format for unlocked cells

    If we then say that Z1 is the cell to hold "printing state" then by changing Z1 to be say 1 the format of those cells containing the Conditional Format rule will revert to their default formatted state... subsequently reverting to 0 (non-print state) will then reactivate the Conditional Format.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: showing unlocked cells?

    File/PageSetup/Sheet Tab, check Black and White
    fill colour wont be printed
    alternatively use a macro to copy sheet
    remove interior colour
    print
    then delete sheet.
    something like
    Sub nocellcolourprint()
     
        
        Sheets("martins sheet").Copy Before:=Sheets(1)
        Cells.Select
        Selection.Interior.ColorIndex = xlNone
        
       ActiveSheet.PrintOut
        Sheets("martins sheet (2)").Delete
      
    End Sub
    Last edited by martindwilson; 07-27-2009 at 07:11 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    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

  4. #4
    Registered User
    Join Date
    06-26-2006
    Posts
    44

    Re: showing unlocked cells?

    So, no then.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: showing unlocked cells?

    er where does "no" come into it?
    both solutions i gave you will work
    the print black/white will change font colour as well though

  6. #6
    Registered User
    Join Date
    06-26-2006
    Posts
    44

    Re: showing unlocked cells?

    No, because how those solutions would only work for me. I can't expect Excel-illiterate people to do those things on their own. I need something that I can set up and which "just works".

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: showing unlocked cells?

    unlucky then. perhaps you had better educate the "illiterate" users or ban them from using excel !
    i cannot believe a user is incapable of setting print to back/white. if they cant do that thay shouldnt be let near a PC and perhaps should be seeking alternative employment!
    Last edited by martindwilson; 07-29-2009 at 06:33 AM.

+ 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