+ Reply to Thread
Results 1 to 1 of 1

VBA Code to lock and unlock cells.

  1. #1
    Registered User
    Join Date
    11-08-2010
    Location
    Jacksonville Fl
    MS-Off Ver
    Excel 2007
    Posts
    1

    Unhappy VBA Code to lock and unlock cells.

    My problem is a have drop down box where the user selects a certain number of boxes to input data (example 3) and the code should prevent the user from entering data into all remaining boxes except the first 3. The code works if I select say box 4 or 5 before selecting box 3. However, after I select box 3 all of my boxes unlock and the use can now enter data in boxes 4 and 5. My code is below. Please advise where my logic has gone arrye
    Please Login or Register  to view this content.

    Moderator's Note: Welcome to the forum. Nice to have you with us. Btw when posting codes be sure to enclosed it with code tags. Highlight the codes then select the "#" symbol. Thank you.
    Last edited by vlady; 08-26-2013 at 07:38 PM.

+ 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. Code to grey out and lock/unlock certain cells
    By Glensafro in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-10-2012, 11:59 AM
  2. Lock and Unlock Cells with VBA
    By gelinasc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-26-2012, 09:40 PM
  3. using VB code to unlock and lock different areas on multiple sheets
    By Healthwatch in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-04-2010, 11:12 PM
  4. Unlock/Lock VBProject through code?
    By djvice in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-24-2005, 05:54 PM
  5. [SOLVED] Lock and Unlock cells using VBA
    By Peter in forum Excel General
    Replies: 1
    Last Post: 01-29-2005, 10:06 AM

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