Consulting

Results 1 to 2 of 2

Thread: Lock cell formatting but allow value input

  1. #1
    Moderator VBAX Master geekgirlau's Avatar
    Joined
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,464
    Location

    Lock cell formatting but allow value input

    Situation:
    • I have a report used for tracking work, with milestones (dates) for various stages.
    • A "traffic light" colour is applied (via VBA) when the user changes the status of an item (green = on track, amber = slipping, red = will miss delivery).
    • While MS Project would be a much better option to handle this, I am restricted to using Excel (for a variety of reasons).
    What I'd like to achieve:
    • Users may change the planned milestone dates during the course of the work.
    • I do NOT want users to be able to change the traffic light colour (which I can foresee is going to occur because they want the progress to look better than it actually is!).
    Is it possible to allow users to enter a value into a cell, but NOT allow them to change the cell format (i.e. lock the format only, not the content)? Alternatively, to detect that they have attempted this and reverse it? There's no sheet-level event that would handle this that I'm aware of.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Why don't you trick them?

    Have the input cell referenced somewhere else off-stage, and use the rules to colour this off-stage cell. Then use the camera tool to copy the view of that cell onto the traffic-light-cell.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •