How to launch macro or other userform after command button.

karkas

Board Regular
Joined
Oct 17, 2007
Messages
170
Office Version
  1. 2013
Platform
  1. Windows
I want to launch userform A when the user hits the command button on userform B, I already have a macro set up to launch UserForm A and tried adding it to the code but it doesn't work.

This is what I have
Code:
Private Sub CommandButton1_Click()
Worksheets("Patient").Range("B9").Value = TextBox1.Value
Worksheets("Patient").Range("B10").Value = TextBox2.Value
Worksheets("Patient").Range("B11").Value = TextBox3.Value
Worksheets("Patient").Range("B15").Value = TextBox4.Value
   End Sub
   
Sub Vanco_Sticker()
Patient_info.Show
End Sub

What needs to be fixed or is there a way to just launch the other userform without trying to fire macro?

Thanks in advance!

P.S. I asked this same question in another forum, but it hasn't been addressed, so I figured I'd give it a try here.
 

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