Strange effect when exporting as text file
the export message you are using is probably some type of delimited format.
Excel sees your embedded quote signs as delimiter - similar reason to why
you create them by using Quote(34) instead of directly. So excel marks them
with double double quotes to indicate a single double quote.
You can probably export as space delimited and it shouldn't put in the
double double quotes as I recall. If not, then you will need to write your
own routine to write the file (which might be better anyway - hard to tell
what you are doing).
Are you familiar with low level file io commands?
--
Regards,
Tom Ogilvy
"Warzel" wrote in message
...
Hello
In Excel I'am trying to export a sheet with some simpel HTML formating
as txt file
In a sheet i have the following data: (all cells in the sheet ar
formated as text)
A1 = Content=<p</p<u<bTitel:</b</u<p</p<p</p<p</p
A2 = <b<font size="42"Data</b</font<p</p<p</p"
When i save it as text file there appear some extra qoute's,
Line 1 is good but line 2 has some extra quote's witch where not visible
in the sheet
The created text file:
Content=<p</p<u<bTitel:</b</u<p</p<p</p<p</p
"<b<font size=""42""Data</b</font<p</p<p</p"
See the qoute at the beginning and end of line 2 and the extra quotes
arrond the 42, Again these where not visible in the sheet
I have created the values in A1 and A2 using the following:
Range("A1").Value =
"Content=<p</p<u<bTitel:</b</u<p</p<p</p<p</p"
Range("A2").Value ="<b<font size=" + Chr$(34) + "42" + Chr$(34) + "" +
DataString + "</b</font<p</p<p</p"
Can someone explain this to me please
Ps.
Exporting as HTML is not an option as this creates a bloated HTML file
witch is not understood by flash where i want import the text file. XML
is not an option because of Office97.
|