ExcelEndeavor
New Member
- Joined
- Oct 13, 2020
- Messages
- 29
- Office Version
- 365
- Platform
- MacOS
I have a listbox ("Listbox1") that filters dynamically (no command button) and I want to display the count of results in a textbox ("Textbox1").
I have tried these two options at the end of my Filter_Data() sub:
and
but both options show all of the unfiltered results. How do I get it to only count the filtered results?
I have tried these two options at the end of my Filter_Data() sub:
VBA Code:
Textbox1 = Listbox1.ListCount
and
Code:
Me.Textbox1 = Me.Listbox.ListCount
but both options show all of the unfiltered results. How do I get it to only count the filtered results?