Blessy Clara
Board Regular
- Joined
- Mar 28, 2010
- Messages
- 204
- Office Version
- 365
- Platform
- Windows
The following code Inserts a blank row after a specific term
Sub insertRow()
Do
If InStr(1, Selection.Value, "Research director:") > 0 Then
Selection.Offset(1, 0).Select
Selection.EntireRow.Insert
End If
Selection.Offset(1, 0).Select
Loop While Selection.Value<> ""
End Sub
Could someone help me on how to modify the code to add a blank row BEFORE THE specific term - Thank you
Sub insertRow()
Do
If InStr(1, Selection.Value, "Research director:") > 0 Then
Selection.Offset(1, 0).Select
Selection.EntireRow.Insert
End If
Selection.Offset(1, 0).Select
Loop While Selection.Value<> ""
End Sub
Could someone help me on how to modify the code to add a blank row BEFORE THE specific term - Thank you