3: Top: Single: The position of th e shape from the top edge of the worksheet. Read/write. This example arranges windows one and two horizontally; in other words, each window occupies half the available vertical space and all the available horizontal space in the application window's client area.

This example sets the height of document window two to half the height of the application window. Shapes other than pictures and OLE objects are always scaled relative to their current width. Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback. expression A variable that represents a ShapeRange object. Specifies the ratio between the width of the shape after you resize it and the current or original width. This example sets the width for column one in the specified table to 80 points (72 points per inch). ShapeRange.Height property (Excel) 05/14/2019; 2 minutes to read; In this article. Have questions or feedback about Office VBA or this documentation? Read/write. Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you … Syntax. Support and feedback.

Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback. 2: Left: Single: The position of th e shape from the left edge of the worksheet.

Shape.ScaleWidth method (Excel) 05/14/2019; 2 minutes to read; In this article. expression A variable that represents a ShapeRange object. The Height property of a Shape object returns or sets the height of the forward-facing surface of the specified shape.

For this example to work, there must be only two document windows open. The returned value includes the height of the text including the space before and after text, the line spacing in text, and the top and bottom text block margins. 4: Width: Single: The width of t he shape. Scales the width of the shape by a specified factor. This function is commonly used to adjust the height of a shape to fit the text it contains. expression A variable that represents a Shape object. Scales the width of the shape by a specified factor. For example, to make a rectangle 50 percent larger, specify 1.5 for this argument. Have questions or feedback about Office VBA … ShapeRange Object. Support and feedback. Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback. Have questions or feedback about Office VBA or this documentation? Have questions or feedback about Office VBA or this documentation? expression.ScaleWidth (Factor, RelativeToOriginalSize, Scale). For pictures and OLE objects, you can indicate whether you want to scale the shape relative to the original or the current size. ActivePresentation.Slides(2).Shapes(5).Table.Rows(2).Height = 100 See also. Therefore, when you add a shape to a drawing, the Width and Height boxes in the Size & Position window display the values for that shape in the shape's default measurement units. Returns or sets the height of the specified object, in points. Windows(2).Height = Application.Height / 2 This example sets the height for row two in the specified table to 100 points (72 points per inch). This measurement doesn't include shadows or 3D effects. Returns or sets the width of the specified object, in points. 5: Height: Single: The height of the shape. This example scales all pictures and OLE objects on myDocument to 175 percent of their original height and width, and it scales all other shapes to 175 percent of their current height and width. ActivePresentation.Slides(2).Shapes(5).Table.Columns(1).Width = 80 See also. Shapes from a stencil that uses metric units are measured in millimeters. Support and feedback. The shape that you're adding (see below for more on this).

TEXTHEIGHT(TheText,(Width - 0.5 in)) Shapes from a stencil that uses US units are measured in feet and inches. This example sets the height for row two in the specified table to 100 points (72 points per inch). For pictures and OLE objects, you can indicate whether you want to scale the shape relative to the original or the current size. Shape Object. Example. Have questions or feedback about Office VBA or this documentation? expression A variable that represents a Shape object. expression.Height. Returns or sets a Single value that represents the height, in points, of the object.