S
supersub15
Hi all,
I've scripted a vba macro that opens html pages in txt format and adds
the following line after <BODY> (through a search and replace):
<link rel="stylesheet" type="text/css" href="Output.css" />
The problem I'm having is that Word or the macro (don't really know)
is converting the double-quote marks into angled quotation marks
(ASCII 147 and 148), which makes the line above unreadable by the
browser.
I've tried using Chr(34):
"<BODY><link rel=" & Chr(34) & "stylesheet" & Chr(34) & " type=" & Chr
(34) & "text/css" & Chr(34) & " href=" & Chr(34) & "Output.css" & Chr
(34) & " />"
But the browser still can't read it for some reason. I manually copied
the line from a working file, and they look exactly the same, except
that the copied line is recognized by the browser and the line added
by the macro is not.
Any ideas?
Thanks
Carlos
I've scripted a vba macro that opens html pages in txt format and adds
the following line after <BODY> (through a search and replace):
<link rel="stylesheet" type="text/css" href="Output.css" />
The problem I'm having is that Word or the macro (don't really know)
is converting the double-quote marks into angled quotation marks
(ASCII 147 and 148), which makes the line above unreadable by the
browser.
I've tried using Chr(34):
"<BODY><link rel=" & Chr(34) & "stylesheet" & Chr(34) & " type=" & Chr
(34) & "text/css" & Chr(34) & " href=" & Chr(34) & "Output.css" & Chr
(34) & " />"
But the browser still can't read it for some reason. I manually copied
the line from a working file, and they look exactly the same, except
that the copied line is recognized by the browser and the line added
by the macro is not.
Any ideas?
Thanks
Carlos