Reputation: 9
I have an excel file, In the first sheet it has data like total count with status active
is 59 rows status obsolete
10 rows.
In the second sheet with 59 records with status column like ACTIVE
AND OBSOLETE
.
I want to create a macro to select records by clicking a button it has to filter records ACTIVE
or OBSOLETE
using VBA.
Upvotes: 0
Views: 3943
Reputation: 5318
One way to auto generate the VBA code is to record a macro of the steps you would take to do this if you were just working directly in the workbook. After you have the macro recorded you can look at the VBA code generated by the macro and modify as necessary.
To record a new macro:
To view the macro VBA code:
Hope this help you get started.
Enjoy!
Upvotes: 1