Re: quote marks in vba by cw
cw
Thu Apr 12 07:56:53 CDT 2007
cheers
I have found the problems, I am off to put my head down the toilet. it was a
spelling error on the line above
sorry to waste every ones time
craig
"Tony Jollans" <My forename at my surname dot com> wrote in message
news:OJX4XxOfHHA.3564@TK2MSFTNGP06.phx.gbl...
> I'm not entirely sure what you're having a problem with, but ...
>
> ... quote marks (") are special characters in VBA, used for delimiting
> strings. When you want to put one inside a string, special techniques are
> needed, the easiest of which is just to double up the character, so """"
> results a string containing a just one quote character. An alternative is
> to use the Chr function - Chr(34) is a quote character.
>
> --
> Enjoy,
>
> Tony Jollans
> Microsoft Word MVP
> "cw" <c@nodomain.con> wrote in message
> news:JbidncTEU7H8n4PbnZ2dnUVZ8q6unZ2d@bt.com...
>> Hi all
>>
>> I am just having a bit of trouble adding a find and replace to my vba
>>
>> long story short
>>
>> I want to find and replace the word qoutemark with a "
>>
>> how can I add this " to vba without it throwing up an error or changing
>> """ to """"
>>
>> thanks
>> Craig
>>
>
>