Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You could try this:
Sub FindReplace() Dim row As Integer Dim myCell As Range Set myCell = Application.InputBox( _ prompt:="Select a cell which has the contents you want to remove", Type:=8) For row = 1 To Worksheets(1).UsedRange.Rows.Count If Worksheets(1).Range("A" & row).Value = myCell.Value Then Worksheets(1).Range("A" & row).Delete Shift:=xlShiftUp End If Next row Set myCell = Nothing End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Inconsistant character spaces extraction formula | Excel Discussion (Misc queries) | |||
Mystery object | Excel Discussion (Misc queries) | |||
MYSTERY!! | Excel Discussion (Misc queries) | |||
Mystery Cell | Excel Discussion (Misc queries) | |||
Mystery ALT key character illudes all methods of extraction! HELP! | Excel Discussion (Misc queries) |