Macro to find a number and delete a row

JasonLevan

Registered User.
Local time
Today, 12:28
Joined
Jan 25, 2011
Messages
21
In column a I have number 1,2,3,4,5...etc number each row, i need a macro to seek out a number I imput into a message box saw number 5, then find that row and delete that row.

Thanks Alot
 
If you still need this try this out..

Sub DeleteRow1()
Dim i As Integer
i = InputBox("Please enter a number")
Range("A2").Select
Do Until ActiveCell.Value = i
ActiveCell.Offset(1, 0).Select
Loop
ActiveCell.EntireRow.Delete
End Sub
 

Users who are viewing this thread

Back
Top Bottom