I have an excel macro to find the word "student" and then insert a row below. But I need it to loop and basically keep finding all throughout the worksheet. I think it uses FindNext but I am a novice with VB. Could someone help me with this code?
Here is what I have:
Cells.Find(What:="student", After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
Worksheets("Sheet1"
.Activate
ActiveCell.Offset(rowOffset:=1).Activate
Selection.Insert Shift:=xlDown
Thanks!
Here is what I have:
Cells.Find(What:="student", After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
Worksheets("Sheet1"
ActiveCell.Offset(rowOffset:=1).Activate
Selection.Insert Shift:=xlDown
Thanks!