View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Henry Markov[_2_] Henry Markov[_2_] is offline
external usenet poster
 
Posts: 2
Default Quotation marks in a string

"<gamma unit=" & chr(34) & "DEG" & chr(34) & " 0.0 </gamma"

"Fabian Grodek" wrote in message
...
Hi,
I want to run a macro that writes out to a text file the following string:
<gamma unit="DEG" 0.0 </gamma

I've tried the following method:
Write #1, "<gamma unit=""DEG"" 0.0 </gamma"

But then I get exactly that:
"<gamma unit=""DEG"" 0.0 </gamma"

Of course, I don't want the double quotation marks, but only once (i.e.,
"DEG", not ""DEG"").

Any hint will be greatly appreciated.
Fabian