Recording a Macro that follows Keystrokes
Select the cells and run:
Sub nototal()
For Each r In Selection
r.Value = Replace(r.Value, "Total", "")
Next
End Sub
--
Gary''s Student - gsnu200743
"freakyquo" wrote:
Hello,
I have a column of descriptions which all end in "Total" - (I did a subtotal
and copied the results into another worksheet.).
I tried recording a Macro to delete the "Total", but for every cell below
the first it just copied what I had done in the first cell.
Is there a way I can get rid of the "Total" at the end, without having to
manually go through all 26,000 lines?
Thanks
|