Previous, Next, and Home Buttons (Open and Close Userforms)

Fromlostdays

New Member
Joined
Jun 1, 2015
Messages
3
I've created a bunch of userforms to help me fill out an excel spreadsheet. With over 700 cells that need to be filled out, usually with yes or no answers, I have to use multiple userforms.

My question is: how do I code a Previous, Next, and Home button (on every individual form) that when pressed will both close the current userform and then open another one? I'm not even sure if it's possible, but any help would be appreciated.

Thank you,
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Have you tried anything like this?
Code:
Private Sub CommandButton1_Click()
Unload Me
UserForm1.Show False
End Sub
If I'm following correctly, one userform needs to have a button to close out the current form and open a different one. What I did was added the "Unload Me" line then in the next line, call the next userform.
 
Upvote 0
Wow it worked! If you read this, thanks. I did try something similar yesterday, and I kept getting a runtime error. I think the only thing I did different was leave out the "False" after .show...

At any rate, I am one happy camper. Thanks again!
 
Upvote 0

Forum statistics

Threads
1,214,588
Messages
6,120,412
Members
448,959
Latest member
camelliaCase

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top