What I need to do is something complex so I will try to explain myself as best as possible ...
It turns out that I have this form
In this form, the user must first select a chapter, then a subchapter and finally an item, as soon as the item is selected, the information of "Code" "Description" and "Unit" will be automatically brought to the Listbox, if the you want to see the rest of the data you must click on the "View APU" button, and at that moment the program should go to the following database and bring the data that I will indicate
Taking as an example the user to choose "STC base asf.-4% asf, ag.1.5" ", the program should take all those data that are highlighted, the same if he had chosen another item (the red ones ) should be the range between one item and another, but as I said the changing range between one item and another there may be 2 items and in other parts 12, so I do not know how to take the specific range I need. . I hope you have made me understand, any additional information with pleasure you give them.
P.D: This is the code I use to search the data
If Me.cbxitm.Value = "" Or Me.cbxitm.Value = " " Then
Me.lbxAPU.Clear
Else
Me.lbxAPU.Clear
j = 1
Set Db = ThisWorkbook.Sheets("APU")
Filas = Db.Range("C2").CurrentRegion.Rows.Count
Me.lbxAPU.RowSource = ""
For I = 2 To Filas
If LCase(Db.Cells(I, j).Offset(0, 2).Value) Like "*" & LCase(Me.cbxitm.Value) & "*" Then
Me.lbxAPU.AddItem Db.Cells(I, j).Offset(0, 1)
Me.lbxAPU.List(Me.lbxAPU.ListCount - 1, 1) = Db.Cells(I, j).Offset(0, 2)
Me.lbxAPU.List(Me.lbxAPU.ListCount - 1, 2) = Db.Cells(I, j).Offset(0, 3)
Else
End If
Next I