Hello Friends, i am trying to modify the below code i got somewhere from the web, it works fine but i need it to update date in cell in "dd/mm/yyyy" or "dd/mm/yy" format ...here is my code .........
Private Sub txtDate_BeforeUpdate(ByVal Cancel As MSForms.ReturnBoolean)
If Len(Me.txtDate.Value) = 8 Then
txtDate.Value = Format(txtDate.Value, "00/00/0000")
ElseIf Len(Me.txtDate.Value) = 6 Then
txtDate.Value = Format(txtDate.Value, "00/00/00")
End If
End Sub
Waiting for your valuabe suggestion..........
Bookmarks