Create multiple rows of data from one Userform

daithiboy

Board Regular
Joined
Jul 1, 2016
Messages
77
Hi Guys,

I'll do my utmost to explain clearly and hopefully one of you excel mages can help me!

I have a userform in which audit data is input. At the top of the userform are combo and text boxes for selecting "Department", "Area" and inputting the date.

Below that are some rows of labels and text boxes for inputting results and the auditor's name.

I'll do my best to show the layout with a table

[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD] ******* (Combo)[/TD]
[TD]Counters (Combo)[/TD]
[TD]Date (text box)[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Standard 1 (Label)[/TD]
[TD]Result 1 (Text box)[/TD]
[TD]Auditor Name (Text box)[/TD]
[/TR]
[TR]
[TD]Standard 2 (Label)[/TD]
[TD]Result 2 (Text box)[/TD]
[TD]Auditor Name (Text box)[/TD]
[/TR]
[TR]
[TD]Standard 3 (Label)[/TD]
[TD]Result 3 (Text box)[/TD]
[TD]Auditor Name (Text box)[/TD]
[/TR]
</tbody>[/TABLE]

I would like for a command button to write to the next available row and include as follows:

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[/TR]
[TR]
[TD]Date[/TD]
[TD]Department[/TD]
[TD]Area[/TD]
[TD]Element[/TD]
[TD]Result[/TD]
[TD]Auditor[/TD]
[/TR]
[TR]
[TD]11/11/11[/TD]
[TD]*******[/TD]
[TD]Counters[/TD]
[TD]Standard 1[/TD]
[TD]95%[/TD]
[TD]John[/TD]
[/TR]
[TR]
[TD]11/11/11[/TD]
[TD]*******[/TD]
[TD]Counters[/TD]
[TD]Standard 2[/TD]
[TD]75%[/TD]
[TD]Tim[/TD]
[/TR]
[TR]
[TD]11/11/11[/TD]
[TD]*******[/TD]
[TD]Counters[/TD]
[TD]Standard 3[/TD]
[TD]90%[/TD]
[TD]John[/TD]
[/TR]
</tbody>[/TABLE]

So the data from combo boxes and date box at the top of the Userform remain the same (Column A, B & C) but the next three columns change dependent on what is input.

I hope that makes sense and please let me know if you need clarification on anything.

Cheers,
Dave
 
Last edited:

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Forum statistics

Threads
1,223,980
Messages
6,175,763
Members
452,668
Latest member
mrider123

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