Jayne: Captain, can you stop her from bein' cheerful, please? Mal: I don't believe there is a power in the 'verse that can stop Kaylee from being cheerful. Sometimes you just wanna duct tape her mouth and dump her in the hold for a month.

'Serenity'


Buffistechnology 2: You Made Her So She Growls?  

Got a question about technology? Ask it here. Discussion of hardware, software, TiVos, multi-region DVDs, Windows, Macs, LINUX, hand-helds, iPods, anything tech related. Better than any helpdesk!


Eddie - Oct 04, 2005 11:46:02 am PDT #4755 of 10003
Your tag here.

tommyrot, this will do what you're asking for:

<html>

<head>

<style>
<!--table
br
   {mso-data-placement:same-cell;}
.xl24
   {mso-style-parent:style0;white-space:normal;}
-->

</style>

</head>


<table>
  <tr>
    <td class=xl24>adsf<br><br>asdfasdf<br><br><br>asdf</td>
  </tr>
</table>


</html>

I got this from saving an Excel file as htm and then reducing Microsoft's craptacular html code to just these essentials to get it to respect the br tags.


tommyrot - Oct 04, 2005 11:52:33 am PDT #4756 of 10003
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

Otherwise, is there way to search an entire Excel document for a certain character (tilde, say) and replace it with a carriage return? In Word you can replace something with ^p for a paragraph (carriage return) or ^l (manual line break) but Excel does not work the same way.


Sean K - Oct 04, 2005 12:16:32 pm PDT #4757 of 10003
You can't leave me to my own devices; my devices are Nap and Eat. -Zenkitty

I don't have a copy of excel at home, but I thought for sure there was a character combo that it would read as a line break or carriage return. Is there anything in the help file about line break or formatting characters?


tommyrot - Oct 04, 2005 12:31:29 pm PDT #4758 of 10003
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

Is there anything in the help file about line break or formatting characters?

We couldn't find anything.


Sean K - Oct 04, 2005 12:32:29 pm PDT #4759 of 10003
You can't leave me to my own devices; my devices are Nap and Eat. -Zenkitty

BASTARDS!


Eddie - Oct 04, 2005 12:38:02 pm PDT #4760 of 10003
Your tag here.

Ok, a few posts up I got the html code that will recognize br tags when importing into Excel.


tommyrot - Oct 04, 2005 12:40:54 pm PDT #4761 of 10003
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

Thanks, Eddie - we'll give that a try tomorrow.


tommyrot - Oct 04, 2005 12:54:58 pm PDT #4762 of 10003
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

Eddie, that doesn't work for what we want to do. If we were to save your example as an html file and open it in Excel, we would want all the text to be in a single cell (because it's all in one <td>). But when I try that, it ends up in four cells (two of which are two cells high, so something is going on).

Anyway, I gotta run.


Eddie - Oct 04, 2005 2:20:03 pm PDT #4763 of 10003
Your tag here.

Eddie - Oct 04, 2005 2:57:19 pm PDT #4764 of 10003
Your tag here.

tommyrot, have you tried exporting the query from Access as xml and then open that xml file in Excel? It seems to work for me, and I made a table with very long strings and line breaks and it came across cleanly.