kacor
asked on
Edit html using excel macro
Hi experts,
I have to edit urgent html text files with macro. I tried to import html file into excel but the text file is broken into parts according cell size. The view is the same but I have to add the cells content to have the original line.
How to solve this job? Any ideas appreciated.
wbr kacor
I have to edit urgent html text files with macro. I tried to import html file into excel but the text file is broken into parts according cell size. The view is the same but I have to add the cells content to have the original line.
How to solve this job? Any ideas appreciated.
wbr kacor
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Dave,
thanks for the quick answer. Now I'm on the way to return home, and I'll test your suggestion asap.
I've not tested but I see a problem: they can occur some to long lines even up to 1 k or more. Would be this problem?
wbr kacor
thanks for the quick answer. Now I'm on the way to return home, and I'll test your suggestion asap.
I've not tested but I see a problem: they can occur some to long lines even up to 1 k or more. Would be this problem?
wbr kacor
In Excel 2003, a cell will hold 32767 characters, display 1024, but all is editable in the formula bar.
You asked to have the ability to read it all in without breaking lines. Its now up to you to determine how you want to use the data in Excel.
Dave
You asked to have the ability to read it all in without breaking lines. Its now up to you to determine how you want to use the data in Excel.
Dave
ASKER
thanks Dave!
kacor
kacor
You might try using Notepad++ also as an alternative. I believe you can google and download for free.
Cheers,
Dave
Cheers,
Dave
ASKER
Hi Dave,
your macro is excellent. The only needed change was - as you wrote - in line 30 the .txt extension changed to .htm
thanks again for this support!!
wbr Janos
your macro is excellent. The only needed change was - as you wrote - in line 30 the .txt extension changed to .htm
thanks again for this support!!
wbr Janos
You're welcome. The second post has both the HTML and TXT options.
Cheers,
Dave
Cheers,
Dave
Here's an example that will read your input into Excel, more "properly".
Open in new window
See attached demonstration workbook.
Cheers,
Dave
readHTMLTxt-r1.xls