ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   removing tabs and newlines (https://www.excelbanter.com/excel-programming/362129-removing-tabs-newlines.html)

Mike Archer

removing tabs and newlines
 
Hello - I need to assign an entire htm file to a variable without tabs and
newlines. In perl, you can replace regular expressions. What do you use to
replace tabs and newlines in vba?
--
Thanks,
Mike

David McRitchie

removing tabs and newlines
 
Hi Mike,
See TrimALL macro and comments concerning it at
http://www.mvps.org/dmcritchie/excel/join.htm
as far as tabs (09), and carriage returns (13), and line feeds (10)
are concerned. -- you will have to make some additions to the macro.
But are you pasting formatted text, or are you pasting HTML coding.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Mike Archer" wrote in message ...
Hello - I need to assign an entire htm file to a variable without tabs and
newlines. In perl, you can replace regular expressions. What do you use to
replace tabs and newlines in vba?
--
Thanks,
Mike





All times are GMT +1. The time now is 05:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com