Hi,
I'm creating a categorised YouTube tutorial viewer for my work place. In order to eliminate any unnecessary searching, I have a categorised list of all the links. The user will chose the desired sheet tab and then choose from a combobox selection to view the tutorial from a WeBbrowser viewer in the worksheet.
Ive got all the pieces together now and its "ok" as is, but i have one last favour to ask. I have essentially duplicated one sheet four times and as that sheet contains a rather large image, the file size is bigger than i would like, so i would prefer to have just one sheet. one sheet means one combobox, so i need to be able to change the list that the combobox shows, dependant on a button click. Ive spent a good few hours trying to crunch this one myself but coming across obsticles with the previous list remaining when i load the next list and a few other issues. Ive searched the tinterweb, but not found what i need.
This is what i have at the moment, which as i mentioned, does work but uses four sheets and four comboboxes.
[VBA]Private Sub Workbook_Open()
Dim l As Long
Dim s As String
For l = 50 To Sheet1.Range("B65536").End(xlUp).Row
s = Sheet1.Cells(l, 1)
Sheet1.ComboBox1.AddItem (s)
Next
For l = 50 To Sheet5.Range("B65536").End(xlUp).Row
s = Sheet5.Cells(l, 1)
Sheet5.ComboBox2.AddItem (s)
Next
For l = 50 To Sheet6.Range("B65536").End(xlUp).Row
s = Sheet6.Cells(l, 1)
Sheet6.ComboBox3.AddItem (s)
Next
For l = 50 To Sheet7.Range("B65536").End(xlUp).Row
s = Sheet7.Cells(l, 1)
Sheet7.ComboBox4.AddItem (s)[/VBA]