+ Reply to Thread
Results 1 to 5 of 5

Gray out and lock the text box or dropbox after user has made a entry in it

  1. #1
    Registered User
    Join Date
    05-28-2014
    Posts
    3

    Gray out and lock the text box or dropbox after user has made a entry in it

    i have a userform containing around 60 textboxes and 10 dropboxes. when a user enters a value in the text box or dropbox i want the box to be grayed and locked so that no other user can make changes in the drop box. Can anyone help with a vba code for this ?

  2. #2
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Gray out and lock the text box or dropbox after user has made a entry in it

    upload a sample file

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Gray out and lock the text box or dropbox after user has made a entry in it

    Like this?

    Please Login or Register  to view this content.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    05-28-2014
    Posts
    3

    Re: Gray out and lock the text box or dropbox after user has made a entry in it

    @fortis thank you for your help. Here, the text-box gets locked immediately after i enter the value. I want the user to enter the value and only after the file is saved or submitted the text-box should be greyed out. The purpose of this is that there are multiple fields which are to be filled by different users. So i do not the entry made by one user to be changed by another. Also I am new to VBA programming so please tell me is there any better way to do it.

  5. #5
    Registered User
    Join Date
    05-28-2014
    Posts
    3

    Re: Gray out and lock the text box or dropbox after user has made a entry in it

    @haroon here is the file
    Attached Files Attached Files
    Last edited by static123; 05-29-2014 at 01:52 AM.

+ 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. Using checkbox to lock & gray out cells - in a protected sheet
    By iugaramo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-16-2014, 09:59 AM
  2. Replies: 5
    Last Post: 04-16-2011, 07:20 PM
  3. Make text visible when entry made in another cell
    By lilraskle in forum Excel General
    Replies: 1
    Last Post: 01-27-2011, 01:19 PM
  4. Change text colour when entry made in another cell
    By thalt in forum Excel General
    Replies: 5
    Last Post: 01-10-2010, 07:13 AM
  5. Lock cells from user data entry based on certain condition
    By sa02000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-18-2009, 02:49 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