+ Reply to Thread
Results 1 to 4 of 4

Disabling a text entry box on a userform

  1. #1
    Registered User
    Join Date
    11-08-2014
    Location
    london
    MS-Off Ver
    2013
    Posts
    49

    Disabling a text entry box on a userform

    I have a user form with 4 text boxes which are prepopulated on initialisation. Depending on the data at initialisation either 3 or 4 text boxes get filled. If it is only 3 boxes I would like to disable/grey out the last text box so people don't try to enter data in it. Is there a simple way to do this? Many thanks

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Disabling a text entry box on a userform

    Perhaps
    Please Login or Register  to view this content.
    ... at an appropriate point in the code?

    You might also like to disable any associated label to make it obvious the textbox is not available
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-08-2014
    Location
    london
    MS-Off Ver
    2013
    Posts
    49

    Re: Disabling a text entry box on a userform

    Sorry to be dumb but I put the first suggestion in and I can still enter data into the text box. What I would really like is it to be greyed out and no data can be entered. Any ideas? Many thanks

  4. #4
    Registered User
    Join Date
    11-08-2014
    Location
    london
    MS-Off Ver
    2013
    Posts
    49

    Re: Disabling a text entry box on a userform

    Ah. I realised. TextBox4.Enabled = False does the trick.

+ 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. Replies: 0
    Last Post: 02-04-2014, 12:36 AM
  2. disabling entry in a cell
    By Dazz* in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-28-2012, 09:54 PM
  3. Disabling Retroactive Data Entry
    By E.Perry in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-07-2010, 01:55 PM
  4. Conditional Userform Text Box Entry
    By bdb1974 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-22-2010, 06:21 PM
  5. Userform Text Entry
    By ajw150 in forum Excel General
    Replies: 0
    Last Post: 03-24-2005, 05:01 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