+ Reply to Thread
Results 1 to 3 of 3

Locking cells out with macro

  1. #1
    Registered User
    Join Date
    09-16-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    38

    Locking cells out with macro

    Hi guys,

    I'm trying to set up a macro that locks or unlocks a column depending on what is put in the column before it.

    at the moment i've got the code written in the worksheet

    Please Login or Register  to view this content.
    However, this means that the cells are unlocked if the cells AD14:AD38 are blank. How do I make it so that they are ONLY unlocked when the word "Approved" is in the AD column?

    Thanks!
    Last edited by nujwaan; 09-23-2009 at 08:38 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Locking cells out with macro

    Maybe like this:
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    09-16-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    38

    Re: Locking cells out with macro

    THanks - worked a treat!

+ 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