Need Macro Code

Amish

New Member
Joined
Jun 15, 2008
Messages
24
Hi !

I want code for making one of my report.
Actually what is done is I get one Report everyday with Some Title with Yesterday DATE in name.
in that report I work only on one Sheet name "SS Registrations".
Now in this Sheet first i apply Filter in 1st Title Row, After applying filter i put some criteria in 4row , code for autofilter is something like --

Selection.AutoFilter
Selection.AutoFilter Field:=4, Criteria1:="0"


After that i copy filter data into new Workbook.There i apply following tow types of subtotal ----
Selection.Subtotal GroupBy:=1, Function:=xlSum, TotalList:=Array(2), _
Replace:=True, PageBreaks:=False, SummaryBelowData:=True


Selection.Subtotal GroupBy:=1, Function:=xlCount, TotalList:=Array(2), _
Replace:=True, PageBreaks:=False, SummaryBelowData:=True


After each subtotal i copy only Total & Count data into notepad and again paste into new workbook.

After doing all this i get 3 columns of data which is my report requirement.
Hence i would be really thankful if someone writes Code as per procedure explain above.

I have try doing using Record macro type but it is too lengthy and not working properly.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hi All!

Plz advise me some code or atleast show me how to copy data after applying filter and also appying subtotals .
 
Upvote 0
Is everyone finding this macro very simple !
I really need this macro !!!! so plz comment !!!
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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