A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Word Height and Width NUmbers



 
 
Thread Tools Display Modes
  #1  
Old May 16th, 2004, 03:56 PM
Paul
external usenet poster
 
Posts: n/a
Default Word Height and Width NUmbers

I passing Excel charts and tables thru' to a word document and reizzing them in VBA,

.InlineShapes(1).Height = 75
.InlineShapes(1).Width = 150

What do the 75 and 150 refer to as it isn't millimetres?

thanks
  #2  
Old May 16th, 2004, 06:01 PM
Jay Freedman
external usenet poster
 
Posts: n/a
Default Word Height and Width NUmbers

Hi Paul

These measurements, and most of the ones used in VBA, are in "points".
By definition 1 inch = 72 points, so one point is a little more than
1/3 of a millimetre.

If you'd rather work in more familiar units, you can use the
conversion functions like this:

.InlineShapes(1).Height = MillimetersToPoints(75) ' 75 mm
or
.InlineShapes(1).Height = CentimetersToPoints(7.5) ' 7.5 cm

and in the other direction

MsgBox PointsToMillimeters(.InlineShapes(1).Height) & " mm"
or
MsgBox PointsToCentimeters(.InlineShapes(1).Height) & " cm"

"Paul" wrote:

I passing Excel charts and tables thru' to a word document and reizzing them in VBA,

.InlineShapes(1).Height = 75
.InlineShapes(1).Width = 150

What do the 75 and 150 refer to as it isn't millimetres?

thanks



--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://www.mvps.org/word
  #3  
Old May 16th, 2004, 09:26 PM
Paul
external usenet poster
 
Posts: n/a
Default Word Height and Width NUmbers

Thank you, Soon after the post I found a reference to 1 point = 1/72 inch, but the conversion functions are great much easier to work with.

Thanks again,
Paul
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.