View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
dok112[_142_] dok112[_142_] is offline
external usenet poster
 
Posts: 1
Default Using Find and Replace to replace " in a macro


Add " & Chr(34) & " to where the " should be. This will locate and
remove it for you.

ex
Replace

Cells.Replace What:="~"", Replacement:="", LookAt:=xlPart,
SearchOrder:= _
xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False

with

Cells.Replace What:="~" & Chr(34) & "", Replacement:="",
LookAt:=xlPart, SearchOrder:= _
xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False


--
dok112
------------------------------------------------------------------------
dok112's Profile: http://www.excelforum.com/member.php...o&userid=10581
View this thread: http://www.excelforum.com/showthread...hreadid=532814