Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 100
Default How to paste multiline HTML into a single cell in Excel 2003?

I have some source HTML code that I need to put in a single cell in Excel
2003 for testing purposes.

I've tried pasting special with all options, no luck. I saved the code
snippet to a .txt file first (to strip formatting) and it still wants to
paste across multiple rows (due to end-of-line symbols, I'm guessing).

I even tried assigning the source to the target cell in VBA, but there are
already lots of quotes in the HTML, plus I don't want to mess up the
end-of-line characters (it is part of what I need to test) so that was
unsuccessful as well.

Is there any (relatively easy) way to paste a block of HTML source into a
single cell? I don't care if the new lines are seperated (like what you
would get by entering [alt-enter] in a cell, or if it all runs on together
in one long wrapped line, as long as the original html source is "intact"
for accurate testing.

Thanks for any advice,
Keith


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default How to paste multiline HTML into a single cell in Excel 2003?

Try pasting into the formulabar.

Ker_01 wrote:

I have some source HTML code that I need to put in a single cell in Excel
2003 for testing purposes.

I've tried pasting special with all options, no luck. I saved the code
snippet to a .txt file first (to strip formatting) and it still wants to
paste across multiple rows (due to end-of-line symbols, I'm guessing).

I even tried assigning the source to the target cell in VBA, but there are
already lots of quotes in the HTML, plus I don't want to mess up the
end-of-line characters (it is part of what I need to test) so that was
unsuccessful as well.

Is there any (relatively easy) way to paste a block of HTML source into a
single cell? I don't care if the new lines are seperated (like what you
would get by entering [alt-enter] in a cell, or if it all runs on together
in one long wrapped line, as long as the original html source is "intact"
for accurate testing.

Thanks for any advice,
Keith


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 100
Default How to paste multiline HTML into a single cell in Excel 2003?

Thanks Dave! That worked perfectly. Now I'm going to go sulk for having
wasted so much time and completely missing such a simple solution... <g

Thanks again,
Keith

"Dave Peterson" wrote in message
...
Try pasting into the formulabar.

Ker_01 wrote:

I have some source HTML code that I need to put in a single cell in Excel
2003 for testing purposes.

I've tried pasting special with all options, no luck. I saved the code
snippet to a .txt file first (to strip formatting) and it still wants to
paste across multiple rows (due to end-of-line symbols, I'm guessing).

I even tried assigning the source to the target cell in VBA, but there
are
already lots of quotes in the HTML, plus I don't want to mess up the
end-of-line characters (it is part of what I need to test) so that was
unsuccessful as well.

Is there any (relatively easy) way to paste a block of HTML source into a
single cell? I don't care if the new lines are seperated (like what you
would get by entering [alt-enter] in a cell, or if it all runs on
together
in one long wrapped line, as long as the original html source is "intact"
for accurate testing.

Thanks for any advice,
Keith


--

Dave Peterson



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
Stop excel from processing HTML? IE paste raw html. nick Excel Discussion (Misc queries) 2 April 21st 23 05:12 PM
Pasting HTML into a single cell tg550 Excel Discussion (Misc queries) 4 May 31st 06 01:28 PM
Can Web Query retrieve a single HTML table cell? Joe Francisco Excel Discussion (Misc queries) 3 April 25th 06 06:18 PM
Excel 2003 SP2 hangs on HTML paste AndyB Excel Discussion (Misc queries) 0 November 23rd 05 02:31 PM
Paste rows of numbers from Word into single Excel cell BecG Excel Discussion (Misc queries) 1 December 8th 04 04:55 PM


All times are GMT +1. The time now is 01:55 AM.

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

About Us

"It's about Microsoft Excel"