FedElecQaEng
New Member
- Joined
- Sep 25, 2023
- Messages
- 12
- Office Version
- 2010
- Platform
- Windows
I have a userform with two textboxes for users to enter dates.
I have code that when the user clicks into one of the text boxes a second userform will appear.
My issue is the second userform only appears once for each textbox. When the main user form appears, and either text box is clicked the second user form will open. but after selecting an option on the second user form or closing the second user form, clicking the text boxes again does not relaunch the userform.
Below is the code I am using to launch the second userform
Note: The EXTEND_OR_ISSUE.Caption is a label that changes what the second userform does.
The first click works how I expect and closes how I expect however the second click does nothing.
Steps are summarized as follows:
For some reason, the second user does not launch a second time
I have code that when the user clicks into one of the text boxes a second userform will appear.
My issue is the second userform only appears once for each textbox. When the main user form appears, and either text box is clicked the second user form will open. but after selecting an option on the second user form or closing the second user form, clicking the text boxes again does not relaunch the userform.
Below is the code I am using to launch the second userform
VBA Code:
Private Sub ISSUE_DATE_enter()
EXTEND_OR_ISSUE.Caption = "ISSUE"
DATE_SELECT.Show
End Sub
Private Sub EXTEND_DATE_enter()
EXTEND_OR_ISSUE.Caption = "EXTEND"
DATE_SELECT.Show
End Sub
Note: The EXTEND_OR_ISSUE.Caption is a label that changes what the second userform does.
The first click works how I expect and closes how I expect however the second click does nothing.
Steps are summarized as follows:
- Launch the main userform
- click the issue date textbox
- The second user form opens
- click a date button on the second userform
- the second userform closes
- The selected date is put into the issue date textbox
- click the issue date textbox again - nothing happens
- click a different textbox and reclick the issue date text box - nothing happens
- delete the date in the issue date text box - nothing happens
- click a different textbox and reclick the issue date text box - nothing happens
- close main userform
- relaunch main userform
- click the issue date textbox
- The second user form opens
- click the X button on the top write of the second userform to close the second userform (Nothing is put into the issue date textbox
- reclick the issue date textbox and click a different textbox and reclick the issue date text box - nothing happens
For some reason, the second user does not launch a second time