VBA Userform: Sending data to specific Sheet depending on which Option Button selected

Clova13

New Member
Joined
Dec 2, 2018
Messages
10
Hi all :)

I'm pretty new to all this so hope someone can help me.

I have a userform set up which initially asks for ComboBox1 (Cmb1) and TextBox1 (Txt1) to be filled in. Then I have two option buttons.

OptonButton1 (Opt1) brings up TextBoxes 2, 3 and 4 (Txt2, Txt3, Txt4)
OptionButton2 (Opt2) brings up Textboxes 5, 6 and 7 (Txt5, Txt6, Txt7)

I need to all the boxes brought up with Opt1 sent to Sheet 1 (Sh1) along with Cmb1 and Txt1
All the boxes brought up with Opt 2 need to go to Sheet 2 (Sh2) along with Cmb1 and Txt1
If Opt1 is selected, boxes brought up under Opt2 don't need to be filled in and vice versa.

Cmb1 is always in column A on the sheet
Txt1 is always in column B on the sheet

Everything I try isn't working. I've only been using VBA for a few days so I'm really green! Help please

Kind Regards,
Rachel
 
@ Mike ...

Congrats ...!!!

I do admire the efficiency of your Crystal Ball ... :)
 
Upvote 0

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,216,116
Messages
6,128,931
Members
449,480
Latest member
yesitisasport

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