Macro to remove ";"

  • Thread starter Thread starter JA
  • Start date Start date
Because it is a recursive function (it calls itself) it needs to be a
function, needs the string to be converted passed to it, and needs to be
named "SemiClean"
 
maybe you want
Sub zReplace()
On Error Resume Next
Do While Not ActiveSheet.UsedRange.Find(";;") Is Nothing
' *.Replace() should return False, but it doesn't on my xl97
Call ActiveSheet.UsedRange.Replace( _
";;", ";", xlPart, xlByRows, False)
Loop
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top