LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Range WrapText and AutoFit with Bold

Hi,

I'm formatting some data that I've loaded programmatically into a
spreadsheet. I've started by calling WrapText on top row (the the
column headings), then AutoFit on all of the columns. It looks like a
nice start.

Then I want the column headings to be bold, so I set Bold true on that
range. I set it bold _before_ setting WrapText true and calling
AutoFit, yet the text in the headings does not fit properly. The column
widths are correct for a normal font, but bold makes the text occupy
more pixels, so some long words are being broken at the last character.

It looks like AutoFit ignores the fact that some of the text is bold.

I'm working around this by adding 2 to each column's ColumnWidth. This
looks nice for the sample data I've tried, but it's a kludge.

I'd rather get AutoFit working properly. Is this a known bug? Is there
a workaround?

-- Peter Gummer
 
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
Missing WrapText from range object in Office Web Components Ricci Gian Maria Excel Programming 0 May 21st 05 10:29 AM
Convert from WrapText Stuart[_5_] Excel Programming 8 April 20th 04 10:23 AM
Convert from WrapText scoobydeux[_2_] Excel Programming 0 April 18th 04 03:32 PM
AutoFit method of Range class failed Wellie[_2_] Excel Programming 1 February 29th 04 02:06 PM
Autofit on rows within a specifed range roy Excel Programming 5 October 22nd 03 04:52 PM


All times are GMT +1. The time now is 10:10 PM.

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"