Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi there,
hopefully someone can help, is it possible to delete a row based on a certain criteria? I have a dynamic range of data in columns A:J, within column H, the header is Region, and the criteria is one of the following: North, South,East or West. Anything that has West on Column H, I want that row or rows to be deleted. Is it possible to do this using code. regards BigH |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
There are a few ways Big H
See http://www.rondebruin.nl/delete.htm -- Regards Ron de Bruin http://www.rondebruin.nl "Big H" wrote in message ... Hi there, hopefully someone can help, is it possible to delete a row based on a certain criteria? I have a dynamic range of data in columns A:J, within column H, the header is Region, and the criteria is one of the following: North, South,East or West. Anything that has West on Column H, I want that row or rows to be deleted. Is it possible to do this using code. regards BigH |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi 'Big H'
might want to consider the following: public sub zapWest() Dim WestIter as Range set WestIter = Cells(Range("H1").row, Range("H1").column) Do while trim(WestIter.text) < "" if trim(WestIter.text) Like "[wW]est" then Rows(WestIter.row).delete end if set WestIter = WestIter.Offset(1, 0) Loop end sub Hope this helps. Chad "Big H" wrote: Hi there, hopefully someone can help, is it possible to delete a row based on a certain criteria? I have a dynamic range of data in columns A:J, within column H, the header is Region, and the criteria is one of the following: North, South,East or West. Anything that has West on Column H, I want that row or rows to be deleted. Is it possible to do this using code. regards BigH |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro for deleting rows and serialising the remaing rows | Links and Linking in Excel | |||
Macro for deleting rows and serialising the remaing rows | Setting up and Configuration of Excel | |||
Macro for deleting rows and serialising the remaing rows | Excel Worksheet Functions | |||
Help!!! I have problem deleting 2500 rows of filtered rows | Excel Programming | |||
deleting hidden rows so i can print only the rows showing?????? | Excel Worksheet Functions |