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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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