Hi folks
i am desperate and so, i did the cross-posting
I have two combobox cmb_Dt_Inc (start date) and cmb_Dt_Fin (end date).
I need show result in ListView.
Cross-Post
Filter by Date and Show in LisView
Thanks
Hi folks
i am desperate and so, i did the cross-posting
I have two combobox cmb_Dt_Inc (start date) and cmb_Dt_Fin (end date).
I need show result in ListView.
Cross-Post
Filter by Date and Show in LisView
Thanks
Hi Marreco,
Replace the function with this
Code:Public Sub ComboboxChange(cmbTarget As MSForms.ComboBox, iComboboxNo As Integer) Dim iColumnNo As Integer ' Muda a cor se tiver conteúdo If cmbTarget.Value = vbNullString Then cmbTarget.BackColor = &HFFFFFF Else: cmbTarget.BackColor = &H80C0FF End If ' seleciona a planilha fliltro e coloca o valor da combo iColumnNo = iComboboxNo If IsDate(cmbTarget.Value) Then Sheets("Filtro").Cells(2, iColumnNo) = CDate(cmbTarget.Value) Else Sheets("Filtro").Cells(2, iColumnNo) = cmbTarget.Value End If Call Pesquisa End Sub
A dream is not something you see when you are asleep, but something you strive for when you are awake.
It's usually a bad idea to say that something can't be done.
The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve
Join us at Facebook
Hi.
works, but when I use another combobox (cmb_Dt_Fin) are filtering only the last action of the combox.
See my image
thank you!!
Hi.
any idea?
thanks
marreco, that is because of the way you have setup your filtering criteria. The way you have defined it, you are using a single row of data as your criteria. This works as an AND operator, and it isn't working as you intend (>= / <=)
A dream is not something you see when you are asleep, but something you strive for when you are awake.
It's usually a bad idea to say that something can't be done.
The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve
Join us at Facebook
Bookmarks