Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
macro to find something in column A and delete 5 rows below it
suppose i have bank name in that excel file and i want that a macr should loop through whole of the file and whenever it finds bank nam in column A it deletes that entire row and 4 rows below it please help i will be thankfu -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
HTH
Sub del5() For Each cel In Range(Range("A1"), Range("A65536").End(xlUp)) If cel.Value = "bank" Then Range(cel, cel.Offset(4, 0)).EntireRow.Delete End If Next End Sub vikram < wrote: macro to find something in column A and delete 5 rows below it suppose i have bank name in that excel file and i want that a macro should loop through whole of the file and whenever it finds bank name in column A it deletes that entire row and 4 rows below it please help i will be thankful --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
macro to delete rows if cell blank in column | Excel Discussion (Misc queries) | |||
find and delete rows macro | Excel Discussion (Misc queries) | |||
Find and delete all other rows | Excel Discussion (Misc queries) | |||
Macro to find and delete rows! | Excel Discussion (Misc queries) | |||
Find item and delete rows | Excel Programming |