Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Disable textboxes

I have three text boxes in a form. As soon as I enter a character in one
of the textboxes, the other two should be disabled. If I then delete
whats in that textbox, so it is 'empty' again, the other textboxes
should be enabled again.

What should I do?


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Disable textboxes

Private Sub TextBox1_Change()
TextBox2.Enabled = (TextBox1.Text = "")
TextBox3.Enabled = TextBox2.Enabled
End Sub


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"anb001 " wrote in message
...
I have three text boxes in a form. As soon as I enter a character in one
of the textboxes, the other two should be disabled. If I then delete
whats in that textbox, so it is 'empty' again, the other textboxes
should be enabled again.

What should I do?


---
Message posted from http://www.ExcelForum.com/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Textboxes SAL Excel Discussion (Misc queries) 2 July 13th 07 12:24 AM
tab between several textboxes Kim Excel Worksheet Functions 0 May 9th 05 04:08 PM
loop through textboxes only marwan hefnawy Excel Programming 1 May 21st 04 06:59 AM
textboxes libby Excel Programming 5 April 13th 04 06:32 PM
Calculating with textboxes.... Mark Rosenkrantz Excel Programming 4 November 23rd 03 12:42 PM


All times are GMT +1. The time now is 05:38 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"