Results 1 to 3 of 3

Protecting cells in a range, if cells contain information

Threaded View

vvebmike Protecting cells in a range,... 12-02-2008, 03:08 AM
davesexcel Try this Sub... 12-03-2008, 10:14 AM
vvebmike Hi Dave, Thanks for the... 12-03-2008, 06:41 PM
  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...

    Table   | Column C      | Column D
    Row 8   |   Joe         |     3        |           <-- protect both cells
    Row 9   |   Jessica     |              |                    <-- leave unprotected
    Row 10  |  Luke         |    2         |                   <-- protect both cells
    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.

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