Home |
Search |
Today's Posts |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi J.P.,
Am Sat, 25 Apr 2015 20:51:04 +0200 schrieb Claus Busch: Sub DeleteRows() a better way: Sub DeleteRows2() Dim strCheck As String Dim LRow As Long, i As Long Dim varData As Variant With Application .Calculation = xlCalculationManual .ScreenUpdating = False End With strCheck = "F1PPM60601,F1PPM60549,F1PPM60623" With Sheets("Invoices") LRow = .Cells(Rows.Count, 1).End(xlUp).Row varData = .Range("A2:A" & LRow) For i = UBound(varData) To LBound(varData) Step -1 If InStr(strCheck, varData(i, 1)) = 0 Then Rows(i + 1).Delete End If Next End With With Application .Calculation = xlCalculationAutomatic .ScreenUpdating = True End With End Sub Regards Claus B. -- Vista Ultimate / Windows7 Office 2007 Ultimate / 2010 Professional |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sum specific column rows based on 2 different column criteria | Excel Worksheet Functions | |||
Delete Rows With Specific Text or Values | Excel Programming | |||
Delete rows if specific criteria not met. | Excel Worksheet Functions | |||
Delete rows that do not meet specific criteria | Excel Programming | |||
I want to delete certain rows based on specific criteria | Excel Programming |