Hi
I wonder if someone knows the correct syntax.
Quite often I use some text boxes on my userforms to act as similar way as ControlTipText.
E.g. If user hovers over labels they will see some tips so they can understand what they need to do (text boxes appear once user hovers on particular label - see code below).
Private Sub Label4_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
Me.TextBox2.Text = "Choose end date:" & vbCrLf & vbCrLf & "" _
& "Tip:" & vbCrLf & "" _
& "Please ensure that the date selected genuinely exists within the calendar year." & vbCrLf & vbCrLf & "" _
& "E.g. 31st April 2012 does not exist." & vbCrLf & ""
Me.TextBox2.Visible = True
End Sub
I normally use userform mouse movement to hide/remove these text boxes again after user has moved away from the label using code below:
Private Sub UserForm_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
Me.TextBox1.Text = ""
Me.TextBox1.Visible = False
Me.TextBox2.Text = ""
Me.TextBox2.Visible = False
End Sub
How can I do the same thing but still be using multipage feature?
I did try below (simply changing UserForm to MultiPage1) which does not work and errors out, lol.
Private Sub MultiPage1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
I would appreciate if someone can share the secret of correct syntax as I quite like the multipage feature.
Any ideas?
Bookmarks