ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Find & Replace * (https://www.excelbanter.com/excel-programming/317758-find-replace-%2A.html)

Jim Thomlinson[_3_]

Find & Replace *
 
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...

Jim Thomlinson[_3_]

Find & Replace *
 
Sorry found it... ~*

"Jim Thomlinson" wrote:

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...


Chip Pearson

Find & Replace *
 
Jim,

Use ~* instead.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Jim Thomlinson" wrote
in message
...
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...




crispbd[_40_]

Find & Replace *
 

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


--
crispbd
------------------------------------------------------------------------
crispbd's Profile: http://www.excelforum.com/member.php...o&userid=10880
View this thread: http://www.excelforum.com/showthread...hreadid=320285



All times are GMT +1. The time now is 11:40 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com