Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi - and thanks for reading this.
I have a macro where I am trying to delete rows that don't begin with "0". These are text cells (hence the apostrophes). The sample below deletes the rows if they DO begin with "0" and I can't find out how to make it delete if they DON'T being with "0". I've searched the group for ages - without success. I've tried Not Like - but that doesn't work. Thanks for your help (it's probably easy for you!) Application.ScreenUpdating = False For i = 90 To 3 Step -1 If Cells(i, 1).Value Like "0*" Then Rows(i).Delete Next Application.ScreenUpdating = True |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
delete rows if cell in row contains "a" or "o" or empty | Excel Programming | |||
Look for cell containing "Initial" then if the next cell after equals "Final" then delete both rows. | Excel Programming | |||
Help with a "delete rows" Macro | Excel Programming | |||
Custom Menus & "Begin a Group" option | Excel Programming | |||
Search "Total" in all worksheets and delete rows containing "Total" | Excel Programming |