How do I code the input of data input on a Userform Multipage control to fill in a worksheet?

Phantasm

Board Regular
Joined
Nov 2, 2007
Messages
58
So I have a userform that has a multipage control for user to input date that will be sent to a worksheet once a command button is pressed. How do I code the command button to send the data to the worksheet? Normaly it would be an ******* event that say takes the data from textbox1.value and writes it in in Cell (1,1).value.

For a multipage, the way I envision it is something like:

If Multipage1.Value = 0
then
textbox1.value = Cell(1,1)value
else
If Multipage1.Value = 1
then
textbox2.value = Cell(1,1)value
else
....

and so on for each page. On my multipage, each page has multiple controls to input things on different areas depending on what tab is selected. It just seems like a ton of programming for this...am I wrong?

Here is a pic of my userform to help:

https://imgur.com/a/HQFYP8y

Here is a copy of my worksheet:
https://imgur.com/a/RErvIOo
 
Last edited:

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,223,884
Messages
6,175,177
Members
452,615
Latest member
bogeys2birdies

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