Find & Replace *

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to do an find and replace on the * character. The problem is that
the * character is the special character for all non blank cell contents. How
do I replace just the * character...

Thanks In Advance...
 
You can use ~* in the find / replace dialog to replace asterisks. I've
included a macro that does the same.


Sub replaceasterisks

Cells.Replace What:="~*", Replacement:=InputBox("Replace Asterisks
with:"), LookAt:=xlPart, SearchOrder _
:=xlByRows, MatchCase:=False, SearchFormat:=False,
ReplaceFormat:=False

End Sub
 

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