Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a table begining in Row 9 that I need to delete the entire row,
if any cell in Column "F" is =0 or if any cell in Column "J" begins with "05" or "340". There are a dynamic number of rows in the table. TIA Greg |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Save your data before testing:
Sub delit() Dim eRow As Long Dim i As Long eRow = Cells(Rows.Count, 6).End(xlUp).Row For i = eRow To 9 Step -1 If Cells(i, 6).Value = 0 _ Or Left(Cells(i, 10).Value, 2) = "05" _ Or Left(Cells(i, 10).Value, 3) = "340" Then Rows(i).EntireRow.Delete End If Next i End Sub Hope this helps Rowan GregR wrote: I have a table begining in Row 9 that I need to delete the entire row, if any cell in Column "F" is =0 or if any cell in Column "J" begins with "05" or "340". There are a dynamic number of rows in the table. TIA Greg |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Rowan, thank you very much...................
Greg |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to delete sheets and saves remaining file does not properly delete module | Excel Programming | |||
Macro to delete sheets and saves remaining file does not properly delete module | Excel Programming | |||
Macro to delete sheets and saves remaining file does not properly delete module | Excel Programming | |||
Macro to delete sheets and saves remaining file does not properly delete module | Excel Programming | |||
Delete every 3rd row, then delete rows 2-7, move info f/every 2nd row up one to the end and delete the row below | Excel Programming |