Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I need to find the word "High" in a whole speedsheet, and remove the whole
row containg that word. Thanks |
#2
![]() |
|||
|
|||
![]()
data is from A1 to A15 A1 has heading e.g."data"-I think heading is
necessary for filering try this sub Public Sub test() Range("a1:a15").Select Selection.AutoFilter Field:=1, Criteria1:="high" On Error GoTo line1 With Sheet1.Range("a2:a15") ..Cells.SpecialCells(xlCellTypeVisible).EntireRow. Delete End With Range("B1").Activate Selection.AutoFilter line1: End Sub ==================== ========================== Kanga 85 wrote in message ... I need to find the word "High" in a whole speedsheet, and remove the whole row containg that word. Thanks |
#3
![]() |
|||
|
|||
![]()
You might try the following, with a little less code.
Sub FindCellDeleteRow() ' Cells.Find(What:="high").Activate ActiveCell.Rows("1:1").EntireRow.Select Selection.Delete Shift:=xlUp End Sub "R.VENKATARAMAN" wrote: data is from A1 to A15 A1 has heading e.g."data"-I think heading is necessary for filering try this sub Public Sub test() Range("a1:a15").Select Selection.AutoFilter Field:=1, Criteria1:="high" On Error GoTo line1 With Sheet1.Range("a2:a15") ..Cells.SpecialCells(xlCellTypeVisible).EntireRow. Delete End With Range("B1").Activate Selection.AutoFilter line1: End Sub ==================== ========================== Kanga 85 wrote in message ... I need to find the word "High" in a whole speedsheet, and remove the whole row containg that word. Thanks |
#4
![]() |
|||
|
|||
![]()
elegant . I was searching for that <shift=xlup I used to use some
tortuous statments. thanks a lot Ronbo wrote in message ... You might try the following, with a little less code. Sub FindCellDeleteRow() ' Cells.Find(What:="high").Activate ActiveCell.Rows("1:1").EntireRow.Select Selection.Delete Shift:=xlUp End Sub "R.VENKATARAMAN" wrote: data is from A1 to A15 A1 has heading e.g."data"-I think heading is necessary for filering try this sub Public Sub test() Range("a1:a15").Select Selection.AutoFilter Field:=1, Criteria1:="high" On Error GoTo line1 With Sheet1.Range("a2:a15") ..Cells.SpecialCells(xlCellTypeVisible).EntireRow. Delete End With Range("B1").Activate Selection.AutoFilter line1: End Sub ==================== ========================== Kanga 85 wrote in message ... I need to find the word "High" in a whole speedsheet, and remove the whole row containg that word. Thanks |
#5
![]() |
|||
|
|||
![]()
Thanks to you both.
"R.VENKATARAMAN" wrote: elegant . I was searching for that <shift=xlup I used to use some tortuous statments. thanks a lot Ronbo wrote in message ... You might try the following, with a little less code. Sub FindCellDeleteRow() ' Cells.Find(What:="high").Activate ActiveCell.Rows("1:1").EntireRow.Select Selection.Delete Shift:=xlUp End Sub "R.VENKATARAMAN" wrote: data is from A1 to A15 A1 has heading e.g."data"-I think heading is necessary for filering try this sub Public Sub test() Range("a1:a15").Select Selection.AutoFilter Field:=1, Criteria1:="high" On Error GoTo line1 With Sheet1.Range("a2:a15") ..Cells.SpecialCells(xlCellTypeVisible).EntireRow. Delete End With Range("B1").Activate Selection.AutoFilter line1: End Sub ==================== ========================== Kanga 85 wrote in message ... I need to find the word "High" in a whole speedsheet, and remove the whole row containg that word. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Remove the word 'total' from subtotals | Excel Discussion (Misc queries) | |||
exporting single cells to Word | Excel Discussion (Misc queries) | |||
Remove single text characters | Excel Discussion (Misc queries) | |||
How to remove a word from dictionary? | Excel Discussion (Misc queries) | |||
Paste rows of numbers from Word into single Excel cell | Excel Discussion (Misc queries) |