I want to load my combobox on sheet2 from data in sheet1
The data in sheet1 will vary in size it also contains column headres that i dont want loaded into the combobox
I want to load my combobox on sheet2 from data in sheet1
The data in sheet1 will vary in size it also contains column headres that i dont want loaded into the combobox
i think u r using RowSource in combo, better use For Next loop, start loop from next row of the header, and if cell is not blank then add to combo.
Seenu
If this post is useful, pls don't forget to Rate this post.
Pls mark thread as resolved once ur problem solved.
ADO Tutorial Variable types SP6 for VB6, MsFlexGrid fast fill, Sorting Algorithms
something like this
Code:Dim i As Long, LastRow As Long With Sheet1 LastRow = .Cells(Rows.Count, "A").End(xlUp).Row For i = 2 To LastRow 'concidered row 1 as header If .Cells(i, "A") <> "" Then .ComboBox1.AddItem .Cells(i, "A") End If Next i End With
Seenu
If this post is useful, pls don't forget to Rate this post.
Pls mark thread as resolved once ur problem solved.
ADO Tutorial Variable types SP6 for VB6, MsFlexGrid fast fill, Sorting Algorithms