Creating a Userform

Jeezan Ahmed

New Member
Joined
Mar 5, 2023
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
I need to create a VBA code for a user form which includes a Combo box a List Box and 3 Buttons. One button will be used to unload the User form and another button to add the data selected from the combo box to the next empty row in the list box and another button to add all the data populated in the List Box to the Excel worksheet. The combo box as well as the List box are Multi columned and they contain 3 columns.

The data to the Combo box needs to be added dynamically everytime the user form loads also the combo box needs to be able to auto complete.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Which sheet & columns is the source for the combobox?
Which sheet does the result need to go to?

Why do you want two different types (combobox & listbox)? Why not make them the same type?
Do you want a way to remove a line from the 2nd box? (the user could have made a mistake in adding it)

Form would look something like this:
1678377957882.png
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

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