Hi all,
This should be easy for someone to answer. I'm just having a brain cramp today.
I am working on a simple Excel VBA app. It takes the user through a series of form that have Next and Back buttons to help them navigate.
So, let's suppose there are only two forms, called Form1 and Form2. When someone clicks on the Next button on Form1, I use the following code:
I am hiding the form (not unloading it) because I want to allow the user to back up to the first form if he needs to by clicking on the Back button, as follows:
Here's the problem:
When backing up to Form1, the Next button is depressed since it is still in the "clicked" state. How can I get the button back to the raised "unclicked" state?
This should be easy for someone to answer. I'm just having a brain cramp today.
I am working on a simple Excel VBA app. It takes the user through a series of form that have Next and Back buttons to help them navigate.
So, let's suppose there are only two forms, called Form1 and Form2. When someone clicks on the Next button on Form1, I use the following code:
Code:
Private Sub Next_Button_Click()
[INDENT]Form1.Hide
Form2.Show
[/INDENT]End Sub
I am hiding the form (not unloading it) because I want to allow the user to back up to the first form if he needs to by clicking on the Back button, as follows:
Code:
Private Sub Back_Button_Click()
[INDENT]Form2.Hide
Form1.Show
[/INDENT]End Sub
Here's the problem:
When backing up to Form1, the Next button is depressed since it is still in the "clicked" state. How can I get the button back to the raised "unclicked" state?