+ Reply to Thread
Results 1 to 3 of 3

Protecting cells in a range, if cells contain information

  1. #1
    Registered User
    Join Date
    12-02-2008
    Location
    Seattle, WA
    Posts
    4

    Protecting cells in a range, if cells contain information

    Hi,

    I have been a lurker of the forums for quite some time and have enjoyed all of the data and help. I went searching for this answer prior to coming and posting, if there is an answer I apologize!

    I need help with an excel file I am using at work. I have users filling in data in columns C and D, I need a macro which will select everything entered and lock those cells - well the catch is, if both columns have data. If column C or D are empty I need that row to remain unlocked. No sorting can occur as well....

    Any ideas on how to get this done?


    Lets see if I can give a visual...

    Please Login or Register  to view this content.
    Data can be entered up to row 82, and the entire range has been named.

    I also have a formula in Column B which calculates, if either Column C and Column D are blank to equal "1", otherwise "0". This is used by a different part of my macro. I was trying to think of a way to use that when selecting the cells, but don't know how to code that either.

    I appreciate any help you guys can give!
    Last edited by vvebmike; 12-03-2008 at 06:42 PM. Reason: Found a work around, instead of what I requested help on originally.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525
    Try this
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-02-2008
    Location
    Seattle, WA
    Posts
    4
    Hi Dave,

    Thanks for the tip, I actually figured out that I could simply force users to not leave the cell in the column D blank, and then basically lock all the cells that have data inside. I appreciate you looking into this for me.

    Mike

+ 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