Hi
I have crested a spreadsheet with a column with a mixture of letters in, however I get an error in the macro. This is my macro so i cannot see where the problem is
Sub insertrow()
Application.ScreenUpdating = False
Dim FOUND As Range
Dim firstR As Integer
SetFOUND = Cells.Find(What:="I", After:=ActiveCell, LookIn:=xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False)
Let firstR = FOUND.Row + 1
Do
FOUND.Activate
FOUND.EntireRow.Insert
Set FOUND = Cells.Find(What:="I", After:=ActiveCell.Offset(1, 0), LookIn:=xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False)
Loop Until (FOUND.Row = firstR)
End Sub
Also my column would be Order numbers
12345
12345
12346
12347
And I would want the insert to be after a new order number
I asusme this is what should happen with the macro
12345
12345
12346
12347
Any ideas, many thanks.