this is my VBA code:
Sub RemoveTags()
Dim r As Range
Selection.NumberFormat = "@" 'set cells to text numberformat
With CreateObject("vbscript.regexp")
.Pattern = "\<.*?\>"
.Global = True
For Each r In Selection
r.Value = .Replace(r.Value, "")
Next r
End With
End Sub
It does remove all the Markup language from my cells but crashes when i run it for ~40k records. Is there something wrong with my code or should I change excel settings?