pedie
Well-known Member
- Joined
- Apr 28, 2010
- Messages
- 3,875
I have to this code that copy and paste for eg: after filtering.
So i want to ask if there is way to count number of new rows copied and pasted
I sure this will be easy for you guys!
Thanks Pedie
So i want to ask if there is way to count number of new rows copied and pasted
I sure this will be easy for you guys!
Thanks Pedie
Code:
Sub Macro2()
Sheet1.Range("A1:B1").Select
Selection.AutoFilter
ActiveSheet.Range("$A$1:$B$24").AutoFilter Field:=2, Criteria1:="N"
Range("A3").Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Range("D3").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
Selection.AutoFilter
End Sub