Home |
Search |
Today's Posts |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This should keep total, but I do think you should have an auto filter that
can take them out and put them back in! TDim rngTarget As Range Dim lRow As Long Dim lLastRow As Long With Worksheets("OS") lLastRow = .Cells(.Rows.Count, 1).End(xlUp).Row For lRow = 1 To lLastRow If Not .Cells(lRow, 1).Value = "Total" Then If Not rngTarget Is Nothing Then Set rngTarget = Application.Union(rngTarget, _ .Cells(lRow, 1).EntireRow) Else Set rngTarget = .Cells(lRow, 1).EntireRow End If End If Next lRow End With If Not rngTarget Is Nothing Then rngTarget.Delete Shift:=xlUp Set rngTarget = Nothing End If -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...mming/200601/1 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Possible to "rotate" range of cells so columns are rows and vice versa? | New Users to Excel | |||
I want columns of worksheet to become rows and vice-versa. | Excel Worksheet Functions | |||
Formula to convert/transpose columns to rows (and vice versa) | Excel Worksheet Functions | |||
Can I rotate excel sheets so columns are rows & vice-versa (i.e.. | Excel Discussion (Misc queries) | |||
Search "Total" in all worksheets and delete rows containing "Total" | Excel Programming |