"Shiperton Henethe" <> wrote in news:3f65d1e2$0$24105
$:
> Hi
>
> Know any good utilities to help me strip out the tags that
> Microsoft Excel 2002 leaved behind when you try
> and export an HTML format file?
>
> This is driving me NUTS.
> And really makes me hate microsoft with a passion.
>
> I literally just want "compact HTML" - ie just the data,
> plus the minimal table structure
> and *NO FORMATTING CODES* of any sort!!
>
> I did have a utility but it was on my previous PC
> and I cant remember what it was called.
>
> I would be prepared to pay no more than say GBP 10.00
> for such a utility (which I only need every couple of months...)
>
>
> Ship
> Shiperton Henethe
>
> p.s. I do have Dreamweaver 4, but it crashes every time it tries
> to open the (2500 line) document exported from Microsoft Excel 2002!
>
>
Easiest way to do this is with a text editor that has search-with-
replace, such as UltraEdit.
Here's what ya do:
Save the Excel file as a character delimited file. Lessay you use the
pipe as the separator: |
So file.xls becomes file.txt
Open file.txt in your text editor and do the following:
(In Ultra Edit,^p is a NEWLINE, ^t is a TAB)
Search for: |
Replace with: </TD><TD>
Next,
Search for: ^p
Replace with: </TD></TR>^p<TR><TD>
Then put a <TABLE> at the top of the file and a </TABLE> at the bottom of
the file.
Voila: A compact, HTML-ized excel table
--
Marc Bissonnette
/ Perl / CGI / Database / Dynamic Web Content Control /
http://www.internalysis.com
Looking for a new ISP?
http://www.canadianisp.com