Jimmypop
Well-known Member
- Joined
- Sep 12, 2013
- Messages
- 753
- Office Version
- 365
- Platform
- Windows
Good day all
I have a subroutine called AdvancedCalendar.
I need to run this sub everytime a user enters a text box which has a tag "date"
code below not working
I have a subroutine called AdvancedCalendar.
I need to run this sub everytime a user enters a text box which has a tag "date"
code below not working
VBA Code:
Private Sub UserForm_Initialize()
Dim ctl As Control
For Each ctl In Me.Controls
If TypeOf ctl Is TextBox Then
If ctl.Tag = "date" Then
Call AdvancedCalendar
End If
End If
Next ctl
End Sub