Excel wrap inside cell

M

middletree

What ASP code can I use, for an ASP-generated spreadsheet, to force a cell
to wrap if the content is longer than the width I have specified for that
cell?
 
L

larrybud2002

middletree said:
What ASP code can I use, for an ASP-generated spreadsheet, to force a cell
to wrap if the content is longer than the width I have specified for that
cell?

Here's the style that I use for that:

..text {mso-number-format:General; text-align:general;white-space:
normal;mso-spacerun: yes }
 
M

middletree

You put it in the TD?? I.e.

<td class="text"></td>


Yes, that's exactly what I did. Put the style code in the head section (no
external CSS for this page)
 
L

larrybud2002

middletree said:
Yes, that's exactly what I did. Put the style code in the head section (no
external CSS for this page)

We should also be clear, this is for Excel right? What version?

This works for me with 2000 and higher.

What I do when I'm trying to figure out what code to use for a
particular Excel formatting is to create a 1 cell excel file, and save
as a web page. Then inspect the code to see what style it generates
for that cell.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top