+ Reply to Thread
Results 1 to 6 of 6

Cell shading not being able to be locked

  1. #1
    Registered User
    Join Date
    09-24-2021
    Location
    Tauranga, New Zeland
    MS-Off Ver
    Office 365
    Posts
    2

    Cell shading not being able to be locked

    Hello,
    I have a range of cells, lets say A2:A22.
    The rows are banded (alternately coloured) by way of 'format cell' (no table or conditional formatting).
    The user is expected to enter information into these cells.
    Sometimes, to save time, the user will copy or cut a cell and paste it elsewhere (e.g. copy A5 and post it to A6).
    The information is pasted successfully but so too is the shading, which means the alternate pattern no longer exists.
    I feel I have tried all combinations of locking and protection, but cannot find a solution to 'lock' the cell shade.

    Assistance in this matter would be incredible.

    I thank you.

    -B-

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Cell shading not being able to be locked

    Welcome to the forum.

    I would think you have two options, really:

    1. Train your staff to use Paste Special - Values (probably not a viable suggestion).
    2. Use some VBA to force copy paste to paste values only (not sure if this is possible, but if it is, it will only work if everyone is working in the desktop app).

    If you want this moving to the VBA section, I can do that for you.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,057

    Re: Cell shading not being able to be locked

    Use Conditional Formatting:=ISODD(ROW(A2)), applied to cells A2:A22
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Cell shading not being able to be locked

    Alternatively why don't you let the row shading be part of a conditional format and it would not matter? Or would this mess up something else?

  5. #5
    Registered User
    Join Date
    09-24-2021
    Location
    Tauranga, New Zeland
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Cell shading not being able to be locked

    Worked a treat - tysvm!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Cell shading not being able to be locked

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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. locked cell and locked date and hour
    By sennahayo in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2014, 11:26 AM
  2. [SOLVED] Trying to get dynamic shading, removing shading if conditions are met.
    By Jonfletch in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-18-2013, 07:55 PM
  3. Replies: 2
    Last Post: 03-07-2012, 09:42 AM
  4. Locked worksheet based upon date and locked columns when worksheet is not locked
    By ruralbrew in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-09-2011, 05:18 PM
  5. Shading Locked Cells
    By Shrikant in forum Excel General
    Replies: 6
    Last Post: 06-20-2006, 05:30 PM
  6. [SOLVED] Conditional Cell Shading (based on the shading of other cells)
    By Tubby in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-20-2006, 05:10 PM
  7. [SOLVED] shading a rowwhen a time is entered but no shading when 0 is enter
    By fomula problems in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-23-2005, 04:05 PM

Tags for this Thread

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