madrid1234
New Member
- Joined
- Aug 7, 2014
- Messages
- 2
Hi all,
I have a range of cross-sectional data, with a couple hundred rows and 10 or so columns. I would like to create a screener that filters this data according to criteria that are entered in a userform.
For example, I would like to filter the raw data for all entries that have a Column C entry between 10 and 30, and Column F entries between 1 and 5.
I already created a userform with the relevant drop-down boxes / textboxes. Any ideas on writing the VBA code to do the filtering?
I am attempting to record a macro in which I simply use the advanced filter manually, but I don't know how I would adjust the code so that the program filters according to any ranges the user specifies in the userform.
Thanks!
I have a range of cross-sectional data, with a couple hundred rows and 10 or so columns. I would like to create a screener that filters this data according to criteria that are entered in a userform.
For example, I would like to filter the raw data for all entries that have a Column C entry between 10 and 30, and Column F entries between 1 and 5.
I already created a userform with the relevant drop-down boxes / textboxes. Any ideas on writing the VBA code to do the filtering?
I am attempting to record a macro in which I simply use the advanced filter manually, but I don't know how I would adjust the code so that the program filters according to any ranges the user specifies in the userform.
Thanks!