Transferring data from two Listboxes in a Userform to an Excel Table

nrollo

New Member
Joined
Jan 5, 2018
Messages
1
Is there any way to transfer data from two Listboxes (which hold separate data) from a UserForm into an Excel Table so it looks like this:

[TABLE="width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Date[/TD]
[TD]Location[/TD]
[TD]Object1[/TD]
[TD]Name1[/TD]
[TD]Name 1[/TD]
[/TR]
[TR]
[TD]ID[/TD]
[TD]Date[/TD]
[TD]Location[/TD]
[TD]Object1[/TD]
[TD]Name1[/TD]
[TD]Name 2[/TD]
[/TR]
[TR]
[TD]ID[/TD]
[TD]Date[/TD]
[TD]Location[/TD]
[TD]Object1[/TD]
[TD]Name1[/TD]
[TD]Name 3[/TD]
[/TR]
[TR]
[TD]ID[/TD]
[TD]Date[/TD]
[TD]Location[/TD]
[TD]Object2[/TD]
[TD]Name1[/TD]
[TD]Name 1[/TD]
[/TR]
[TR]
[TD]ID[/TD]
[TD]Date[/TD]
[TD]Location[/TD]
[TD]Object2[/TD]
[TD]Name1[/TD]
[TD]Name 2[/TD]
[/TR]
[TR]
[TD]ID[/TD]
[TD]Date[/TD]
[TD]Location[/TD]
[TD]Object2[/TD]
[TD]Name1[/TD]
[TD]Name 3[/TD]
[/TR]
[TR]
[TD]ID[/TD]
[TD]Date[/TD]
[TD]Location[/TD]
[TD]Object3[/TD]
[TD]Name1[/TD]
[TD]Name 1[/TD]
[/TR]
[TR]
[TD]ID[/TD]
[TD]Date[/TD]
[TD]Location[/TD]
[TD]Object3[/TD]
[TD]Name1[/TD]
[TD]Name 2[/TD]
[/TR]
[TR]
[TD]ID[/TD]
[TD]Date[/TD]
[TD]Location[/TD]
[TD]Object3[/TD]
[TD]Name1[/TD]
[TD]Name 3[/TD]
[/TR]
</tbody>[/TABLE]

ID = MAX Count + 1
Date = DD/MM/YYYY (selected from the Calendar Object)
Location = Combobox (List comes from a different table)
Object = Listbox1 (items are added from a combobox into the listbox within the UserForm)
Name1 = Name 1 need to match for a later calculation
Name 1, 2 ,3 = Listbox2 (items are added from a different combobox into the listbox within the UserForm)

Sorry my information is a little vague, but that's the only way to describe it.
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Forum statistics

Threads
1,223,897
Messages
6,175,270
Members
452,628
Latest member
dd2

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