E
Elaine
I would like to insert two rows after the word Total appears in Column A
except at the bottom of the working range as I don't want to insert lines
between Total and Grand Total.
Dim RngCell as Range
Dim rCell as Long
If InStr(1, LCase(RngCell.Value), "total") > 0 then
Rows(rCell + 1 & ":" & rCell + 2).Insert
How do I tell the above code not to insert two rows if Grand Total (with a
space) appears in the row below total?
Thanks for your help.
--Elaine
except at the bottom of the working range as I don't want to insert lines
between Total and Grand Total.
Dim RngCell as Range
Dim rCell as Long
If InStr(1, LCase(RngCell.Value), "total") > 0 then
Rows(rCell + 1 & ":" & rCell + 2).Insert
How do I tell the above code not to insert two rows if Grand Total (with a
space) appears in the row below total?
Thanks for your help.
--Elaine