Hi,
I have copied a marco from a website which finds text in a .txt file and replaces it with another text string,
it works fine when i just look for "123" and replace with "abc" but if i try and look for
and replace with
it dosent like it, how can i make it to ignore the " "?, because thats where vba brings up an error in the code.
Thanks
Matt
I have copied a marco from a website which finds text in a .txt file and replaces it with another text string,
Code:
Sub TestFindAndReplace()
On Error GoTo ErrorHandler
Call FindAndReplace("C:\test1\testfile.txt", "123", "abc")
ProgramExit:
Exit Sub
ErrorHandler:
MsgBox Err.Number & " - " & Err.Description
Resume ProgramExit
End Sub
it works fine when i just look for "123" and replace with "abc" but if i try and look for
HTML:
[IMG]http://www.mrexcel.com/forum/../CL300/images/Back-button-V2-web_000.gif[/IMG] BORDER="0">
and replace with
HTML:
it dosent like it, how can i make it to ignore the " "?, because thats where vba brings up an error in the code.
Thanks
Matt