Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In Excel 2003 I have inserted 4 autoshape rectangle boxes. When I double on
the autoshape the Format Autoshape box appears and under the Size tab it show the height and width of the autoshape box. My question is how can I have the height and width information in this dialog box input into my spread sheet? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Just run this in your typical VBA module. This will display the heights and
widths of all of your shapes on the active sheet: Sub ShapeSizes() Dim MyShape As Shape Dim i As Long For Each MyShape In ActiveSheet.Shapes MyShape.Select With Selection ActiveSheet.Cells(1 + i, 1) = .ShapeRange.Height ActiveSheet.Cells(2 + i, 1) = .ShapeRange.Width End With i = i + 2 Next MyShape End Sub ------ Cheers, Anony "Ed Bachmann" wrote: In Excel 2003 I have inserted 4 autoshape rectangle boxes. When I double on the autoshape the Format Autoshape box appears and under the Size tab it show the height and width of the autoshape box. My question is how can I have the height and width information in this dialog box input into my spread sheet? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Anony, this will help me out alot.
Edward Bachmann "Anony" wrote: Just run this in your typical VBA module. This will display the heights and widths of all of your shapes on the active sheet: Sub ShapeSizes() Dim MyShape As Shape Dim i As Long For Each MyShape In ActiveSheet.Shapes MyShape.Select With Selection ActiveSheet.Cells(1 + i, 1) = .ShapeRange.Height ActiveSheet.Cells(2 + i, 1) = .ShapeRange.Width End With i = i + 2 Next MyShape End Sub ------ Cheers, Anony "Ed Bachmann" wrote: In Excel 2003 I have inserted 4 autoshape rectangle boxes. When I double on the autoshape the Format Autoshape box appears and under the Size tab it show the height and width of the autoshape box. My question is how can I have the height and width information in this dialog box input into my spread sheet? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
cell 's width and height | Excel Programming | |||
cell width and height | New Users to Excel | |||
Cell Height & Width Equal | Excel Discussion (Misc queries) | |||
What does the 8.43 and 12.75 represent in height and width of cell | Excel Discussion (Misc queries) | |||
Is it possible to lock the height and width of a cell? | Excel Discussion (Misc queries) |