Quantcast
Viewing all articles
Browse latest Browse all 21363

Populate listbox from command button

Hi guys, I am really new to VB so please excuse me if my question is phrased poorly or Im a bit slow on the uptake.

I have a Userform which has:
ComboBox3 (Contains a name)
ComboBox4 (Contains a week number eg, 52)
ListBox1
CommandButton2

Data is is sheet 2 which is named "Tracker" A:AF

What I am struggling with (and I have searched online for an answer for a couple of days now to no avail) is this:

I need to click command button 2, it take the values from ComboBox3 and CombBox4, then populate ListBox1 with the associated data which is contained on the spreadsheet.

Basically, I need it to filter all the data I have in the spreadsheet, look at that persons result for a particular week, and then return columns to the right of that data in the listbox. If possible, I need it to only return say, columns H,J,K and AC.

I am at a loss here guys and until I can figure out how to do this bit, I cant move on with my project.

Would really appreciate the help!

Viewing all articles
Browse latest Browse all 21363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>