I have a userform for a music collection that is named "frmRecordings". It has two listboxes on it. Listbox1 ("lstRecordings") populates with all recordings that are on my spreadsheet. When one of those recordings is selected I want listbox2 ("lstTracks") to show the tracks that are on that specific recording. The Tracks are on a separate Sheet in my workbook. And the Tracks sheet has all tracks for all recordings in my collection with a column labled "RecordingID" that can be used to pull up the tracks for that specific recording (I just don't know how). I imagine this is a simple program, but I'm too new to VBA to know how to do it, and I can't find a sample anywhere on the web.
Here is my code so far for the frmRecording (minus commandbuttons, etc):
I have also attached the excel workbook.![]()
Please Login or Register to view this content.
Can anyone show me how to filter the tracks for one recording and send that info to lstTracks?
Here are the columns of my Tracks sheet: ID | TRACK No | TITLE | COMPOSER | COMPOSER2 | COMPOSER3 | PLAY TIME | RECORDINGID
Each track has it's own ID, and the RECORDINGID is the ID assigned to each recording .
Let me know what additional info you need.
Thanks.
Bookmarks