*/
Got something to write about? Check out our Article Builder.
*/

View \ClearTxt.txt

Clear All Text 1.0

Submitted By: Kamon
Rating: starstarstarstarhalf star (Rate It)


Ever get tired of having to type in TextBoxName.text = "" every time you want to empty the contents of a textbox?  Well, Here is an eaiser way:

Put this code in a Module

Public Function ClearText(Form)
On Error Resume Next
For Each TextBox In Form
TextBox.text = ""
Next TextBox
End Function

Now, when you want to clear every textbox that is on a form, you can do it with one line oF code!

ClearText (FormNameHere)

corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.