Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
HI,
I wish to delete entire row if value in col J is "--" I did some work but not working properly. data id huge of 400 rows. Thanks for help. Boss Sub delete() Dim rng As Range Dim rngAll As Range Set rngAll = Range("j:j") For Each rng In rngAll If rng.Value = "--" Then rng.EntireRow.Delete End If Next rng Set rng = Nothing Set rngAll = Nothing End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Visual Basic Protection and Delete Modules | Excel Discussion (Misc queries) | |||
How to delete rows in visual basic | Excel Discussion (Misc queries) | |||
How to delete rows in visual basic | Excel Discussion (Misc queries) | |||
Delete Rows if any cell in Column H is blank but do not Delete Fir | Excel Programming | |||
Very Basic Problem - Merged Cell Equals Contents of a Single Cell | Excel Worksheet Functions |