Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 9th, 2004, 10:24 AM
Registered User
 
Join Date: Jun 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Excel ALT+ENTER, Html equivalent?

I want to generate html files that excel can open, but want to achieve the same wrap effect as using the ALT+ENTER keys within Excel.

I tried using <BR>, but it still wraps down to the next row. In the following example, I want all the manufacturer data in a single row (copy this to a text editor and name it test.xls, then double click to open it:

<table border=1>
<TR bgcolor="CCCCCC">
  <TD>DESCRIPTION</td>
  <TD>MFG</td>
  <TD>MFG PN</td>
</TR>

<TR valign="top">
  <TD>RES,0603,1/16W,100PPM,100,1%</td>
  <TD>DALE<BR>KOA SPEER<BR>KOA SPEER<BR>VISHAY<BR>VISHAY</td>
  <TD>CRCW0603-1000FRT2<BR>RK73H1JT1000F<BR>RK73H1JTE1000F<BR>CRC W06031000FRT1<BR>CRCW06031000FRT2</td>
</tr>
</table>
 
Old October 16th, 2006, 03:53 AM
Registered User
 
Join Date: Oct 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

lizard8890 has probably long since either found a solution to this or given up, but today I enountered the same problem, found a solution here:
http://software.groupbrowser.com/t274994.html ,
and figured posting it here might help someone else find it quicker sometime in the future.

To reiterate that solution, adding

br {
mso-data-placement: same-cell;
}

to the html style sheet cause Excel to import the lines between the <br> tags into one spreadsheet cell.

Hope this helps someone sometime!







Similar Threads
Thread Thread Starter Forum Replies Last Post
Export HTML to Excel dbellavi C# 2005 3 December 19th, 2007 08:48 AM
How to disable ALT+ENTER keyboard shortcut q2q2 BOOK: Access 2003 VBA Programmer's Reference 0 November 8th, 2006 05:05 PM
Excel to HTML spacy ASP.NET 1.x and 2.0 Application Design 2 January 31st, 2005 12:26 AM
Html to Excel problem spacy ASP.NET 1.x and 2.0 Application Design 1 October 23rd, 2004 05:10 AM
can i enter html into access database? face Classic ASP Databases 2 September 11th, 2003 03:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.