Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Importing Multiple lines of text in a single Excel Cel


this macro will open an html, copy each line into the A1 cell. - modif
this to include
your other html files

Sub gethtml()
fn = "c:\test.htm"
Open fn For Input As #1
Do While Not EOF(1)
Line Input #1, a
Cells(1, 1).Value = Cells(1, 1).Value + Chr$(13) + a
Loop
Close #1

End Su

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

~~Now Available: Financial Statements.xls, a step by step guide to creating financial statements
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing multiple lines into Excel from txt. EricB Excel Worksheet Functions 3 October 7th 08 12:56 AM
How to split wrapped text in a single cell into multiple lines Dr Fumanchu Excel Discussion (Misc queries) 2 February 27th 08 01:30 PM
Importing multiple forms into a single Excel list Jacques Excel Discussion (Misc queries) 0 November 3rd 06 06:51 PM
two lines of text in a single row? SteveB Excel Discussion (Misc queries) 18 June 30th 05 05:09 PM
two lines of text in single row SteveB Excel Discussion (Misc queries) 2 May 17th 05 08:17 PM


All times are GMT +1. The time now is 09:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"