Execl Macro

plamuren

New Member
Joined
May 12, 2002
Messages
1
How can I use an excel macro to filter a table in Microsoft excel.
Here is an example of my table
Code 20318: AYODELE,M-4519P
Date Time Call Place Band Rate Distant Duration Cost Code
dd/mm/yyyy hh:mm Type Number hh:mm:ss $ Number
26/03/2002 09:14 Otg Benin F Standard 052252680 0:08:48 1.67 20318
19/03/2002 08:27 Otg United Kingdom 2 Standard 009447833621061 0:15:34 14.08 20318
18/03/2002 14:55 Otg United Kingdom 2 Standard 009447903681797 0:09:44 8.80 20318
18/03/2002 07:46 Otg United Kingdom 2 Standard 009447833621061 0:18:35 16.72 20318

Type Number Cost
$
Local etc. 0 0.00
STD 1 1.67
IDD 3 39.60
All Outgoing 4 41.27
All Incoming 0 0.00

I will like to remove items in Green.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
We cant see the items in green, but to use the filter command in a macro include the code

Selection.AutoFilter field:=2, Criteria1:=MyValue, Operator:=xlAnd

the code above sets a sets the filter to use criteria 2 and look for a string helf in the Dim MyValue

If you could further enlighten us to what you want to do I could expand this further
 
Upvote 0

Forum statistics

Threads
1,214,905
Messages
6,122,172
Members
449,071
Latest member
cdnMech

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top