duplicate userform fields and send to spreadsheet depending on listbox1.listcount

AndyJM87

New Member
Joined
Aug 31, 2018
Messages
28
Firstly, hello to all. I am a newbie here and also a newbie in excel.

I need some help from you please. I have been tasked in work to create the spreadsheet with a userform to input all data.

On the userform I have a listbox for vehicle numbers. What I need to do is copy all of the data from the userform to the spreadsheet row by row depending on the number of items in the listbox.

For example:
If I have 10 vehicle numbers added the the VRN listbox, I need the whole userform to copy 10 times.
If I have 15 vehicle numbers added in the VRN listbox, I need the whole userform to copy 15 times.

Each time it copies it needs to go to the next row,

I have included some screen prints to hopefully make it a bit more understandable. I have had to block certain things out due to the nature of my work.

Any help appreciated :)

pform_zpsnbehhj46.png


psheet_zps7slohhph.png

 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
We need to know exactly what Userform control values go to what Range on the sheet.
Saying just copy the entire Userform 15 times does not provide exact details.
And looking at your image does not help me.

Like you need to say Textbox1 value copy to column 3 first empty row
Textbox2 value copy to column 4 first empty row
And on and on

And looking at your image is very hard for me to see exact details
 
Upvote 0

Forum statistics

Threads
1,223,907
Messages
6,175,300
Members
452,633
Latest member
DougMo

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