Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2006

Tip: Looking for answers? Try searching our database.

UserForm Question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Barb Reinhardt - 20 Jan 2006 18:59 GMT
I have a userform with a text box in it.   I want the user to enter the month
and date in the format mm/yyyy.   In the text box, I want to display mm/yyyy,
but when the user selects the TextBox1, I want it to clear out.   What do I
need to do to accomplish this?  

Thanks,
Barb Reinhardt
Mark Lincoln - 20 Jan 2006 19:07 GMT
I haven't tested this, but it should work.  I'm sure someone will tell
me if I'm wrong.  :-)

Private Sub TextBox1_Enter()
   TextBox1 = ""
End Sub
Toppers - 20 Jan 2006 19:09 GMT
Barb,
             This will clear previous entries

Private Sub TextBox1_Enter()
TextBox1.Value = ""
End Sub

> I have a userform with a text box in it.   I want the user to enter the month
> and date in the format mm/yyyy.   In the text box, I want to display mm/yyyy,
[quoted text clipped - 3 lines]
> Thanks,
> Barb Reinhardt
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.