ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Date entry mandatory (https://www.excelbanter.com/excel-programming/412587-date-entry-mandatory.html)

tkraju via OfficeKB.com

Date entry mandatory
 
Date entry in a textbox on a user form is mandatory,and when the textbox is
focussed at initial stage(when cursor blinks on textbox) msg"Enter Date in
"mmddyy" format".Which event code will give me this results.

--
Message posted via http://www.officekb.com


Crowbar via OfficeKB.com

Date entry mandatory
 
Hello,

Just test this to see if its what you require,

create a userform with 2 textboxes and 1 label

then paste this code into the userform

Private Sub TextBox2_enter()
Label1.Visible = False
End Sub

Private Sub TextBox1_Enter()
Label1.Visible = True
End Sub


When selecting between the two text boxes, the label will appear then
disappear.

If you need anymore help you can get me @




tkraju wrote:
Date entry in a textbox on a user form is mandatory,and when the textbox is
focussed at initial stage(when cursor blinks on textbox) msg"Enter Date in
"mmddyy" format".Which event code will give me this results.


--
Anthony Prescott
http://www.apofficesolutions.co.uk

Message posted via http://www.officekb.com



All times are GMT +1. The time now is 05:51 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com