I am trying to search an entire sheet for a certain word "consolidated", and when the word appears i want the following macro to run ... but then i want this to repeat throughout the entire sheet ... please help! currently it just finds 'Consolidated" once and the macro ends
Sub PreStep1()
Cells.Find(What:="consolidated", After:=ActiveCell, LookIn:=xlFormulas,
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
ActiveCell.EntireRow.Insert
ActiveCell.Offset(1, 0).Select
ActiveCell.EntireRow.Select
Selection.Copy
ActiveCell.Offset(-1, 0).Select
ActiveSheet.Paste
ActiveCell.Select
ActiveCell.Offset(0, 3).Select
ActiveCell.FormulaR1C1 = "FEE"
ActiveCell.Offset(0, 1).Select
ActiveCell.FormulaR1C1 = "=R[1]C+R[2]C"
ActiveCell.Offset(0, 1).Select
ActiveCell.FormulaR1C1 = "=R[1]C+R[2]C"
ActiveCell.Offset(0, 1).Select
ActiveCell.FormulaR1C1 = "=R[1]C+R[2]C"
ActiveCell.Offset(0, 1).Select
ActiveCell.FormulaR1C1 = "=R[1]C+R[2]C"
ActiveCell.Offset(0, 1).Select
ActiveCell.FormulaR1C1 = "=R[1]C+R[2]C"
ActiveCell.Offset(0, 1).Select
ActiveCell.FormulaR1C1 = "=R[1]C+R[2]C"
ActiveCell.EntireRow.Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False
ActiveCell.Offset(1, 0).Select
ActiveCell.EntireRow.Select
Selection.Delete
Selection.Delete
End Sub
Sub PreStep1()
Cells.Find(What:="consolidated", After:=ActiveCell, LookIn:=xlFormulas,
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
ActiveCell.EntireRow.Insert
ActiveCell.Offset(1, 0).Select
ActiveCell.EntireRow.Select
Selection.Copy
ActiveCell.Offset(-1, 0).Select
ActiveSheet.Paste
ActiveCell.Select
ActiveCell.Offset(0, 3).Select
ActiveCell.FormulaR1C1 = "FEE"
ActiveCell.Offset(0, 1).Select
ActiveCell.FormulaR1C1 = "=R[1]C+R[2]C"
ActiveCell.Offset(0, 1).Select
ActiveCell.FormulaR1C1 = "=R[1]C+R[2]C"
ActiveCell.Offset(0, 1).Select
ActiveCell.FormulaR1C1 = "=R[1]C+R[2]C"
ActiveCell.Offset(0, 1).Select
ActiveCell.FormulaR1C1 = "=R[1]C+R[2]C"
ActiveCell.Offset(0, 1).Select
ActiveCell.FormulaR1C1 = "=R[1]C+R[2]C"
ActiveCell.Offset(0, 1).Select
ActiveCell.FormulaR1C1 = "=R[1]C+R[2]C"
ActiveCell.EntireRow.Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False
ActiveCell.Offset(1, 0).Select
ActiveCell.EntireRow.Select
Selection.Delete
Selection.Delete
End Sub