-
Filtering With VBA Macro
Afternoon,
I have uploaded an example workbook that I want to filter the column 'Bill Frequancy' with some vba. I need to filter any bill frequancy between 02 and 10. I've tried using the autofilter but this always returns incorrect results.
Can anyone help.
Regards,
Mattster
-
It may not need a macro. The data in column C is 'numbers stored as text'. You can quickly convert them to proper numbers by putting the number 1 in say E1, copy it, then select C2:C27, Edit|PasteSpecial|Multiply|OK. Then delete E1.
Now your autofilter should work.
Last edited by p45cal; 10-22-2010 at 06:55 AM.
p45cal
Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.
-
Another way of converting them to numbers: If you have your Tools|Options|Error checking|Number stored as text checkbox ticked, when you select C2:C27, you'll see a small box with an exclamation mark which you can click, choose Convert to number. Job done.
p45cal
Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules