+ Reply to Thread
Results 1 to 2 of 2

Disable Command Button

  1. #1
    Registered User
    Join Date
    03-02-2008
    Posts
    7

    Disable Command Button

    Hi all

    I have a userform with one text box and one command button. Plaese see an attachment file.

    I want that If Text Box is empty then Command button disable otherwise enable if there is any value in Text Box. This is a "Password Form." I have seen this type of forms in many applications.

    Please help me.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello Hasnain,

    Your attachment didn't post, but that's no problem since you described your layout. Here is the code for each event procedure on the UserForm.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

+ 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