Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Im trying to Have a total line that is created below the last line of data.
I never know how many records there are going to be each month here is the code that i would like to intergrate it with. Sub NetPIlIQ() Dim rng As Range Dim rng1 As Range Dim rng2 As Range Dim rng3 As Range Dim rng4 As Range With Worksheets("TOEPIEXP") Set rng = Range("A1").CurrentRegion rng.AutoFilter Field:=24, Criteria1:="0" Set rng2 = .AutoFilter.Range Set rng2 = rng2.Offset(1, 0).Resize( _ rng2.Rows.Count - 1) Set rng3 = .Range("B:B,E:E,V:V,X:X,AD:AD").EntireColumn Set rng1 = Intersect(rng2.EntireRow, rng3) End With Set rng4 = Worksheets("NetPILIQ") _ ..Cells(Rows.Count, 1).End(xlUp)(2) If rng4.Row < 6 Then Set rng4 = Worksheets("NetPILIQ").Range("A6") rng1.Copy rng4 End If Selection.AutoFilter 'removes autofilter End Sub Any help would be great. -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...mming/200609/1 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Creating a total percentage from coloured cells | Excel Worksheet Functions | |||
Equals Sub Total Line | Excel Worksheet Functions | |||
Creating a formula that calculates a total cell | Excel Discussion (Misc queries) | |||
Sort creating total errors | Excel Discussion (Misc queries) | |||
Total Line in Report | Excel Programming |