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: 1
Default Font size (Excel-Autocad)

Hi,
I'm writing some code that draws a Range on Autocad using the mtext
object.
Basically, for each cell in my range I draw a rectangle in Acad of
cell.Height x cell.Width
with mtext.Height = cell.Font.Size

I have some problems whit the font height (any type of font).
If "Stefano" fits in my range in acad goes outside the rectangle...
Now my code is mtext.Height = cell.Font.Size - 3 (and it works fine)
but
is there a perfect way to adjust the size?

Regards,
Stefano

 
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
Changing Font color based on font type or size John Excel Discussion (Misc queries) 2 February 7th 08 12:50 AM
Change all text one font size up with various font sizes used. omchrystal New Users to Excel 2 March 6th 07 09:01 PM
Font size prints same size regardless of how I set it in Excel Marcusmouse Excel Discussion (Misc queries) 2 May 26th 05 03:25 PM
Dropdown list for font size, font type and number formats ExcelMonkey[_190_] Excel Programming 1 March 9th 05 03:50 PM
edit an autocad r14 object to open in autocad 2000 Derek Excel Discussion (Misc queries) 0 January 20th 05 09:51 PM


All times are GMT +1. The time now is 07:20 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"