Calling a Userform with an If/Then statement

Eaglboy1

New Member
Joined
Apr 19, 2016
Messages
20
Hey there guys. I'm trying to revamp one of my macros so that it will pull up a new userform based on information input into the first userform. What I can't figure out is how to get the system to call the second userform once it's figured out the if/then statement. The code I'm trying to use is pretty simple, but I keep getting errors and it won't pull up the second userform. I was hoping someone could help me fix my code so that it'll work properly. Here's what I have:

Code:
Code:
If Box1.Text = "Yes" Then
Call Userform1
End If

I'm sure I'm doing something wrong here, but I'm not sure what it is. Anyone able to help would be greatly appreciated. Thanks!
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Try:
Code:
 Userform1.Show
 
Upvote 0
You are very welcome. Not to worry .... we've all been there!!! :)
 
Upvote 0

Forum statistics

Threads
1,216,495
Messages
6,130,979
Members
449,611
Latest member
Bushra

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