drom
Well-known Member
- Joined
- Mar 20, 2005
- Messages
- 528
- Office Version
- 2021
- 2019
- 2016
- 2013
- 2011
- 2010
- 2007
Hi and Thanks in advance!
I Do not have to select the Shape to get the following info:
If I select the shape, I can get this info:
'But Is it possible to get the prior info without selecting the shape?
This way does not work:
Thanks again !
I Do not have to select the Shape to get the following info:
VBA Code:
Dim shp As Object: Set shp = Sheets(1).Shapes("pImgModel")
Debug.Print shp.Placement
Debug.Print shp.Left
Debug.Print shp.Top
Debug.Print shp.Width
Debug.Print shp.Height
If I select the shape, I can get this info:
VBA Code:
Dim shp As Object: Set shp = Sheets(1).Shapes("pImgModel")
shp.Select
With Selection
Debug.Print .ShapeRange.LockAspectRatio
Debug.Print .ShapeRange.Line.ForeColor.ObjectThemeColor
Debug.Print .ShapeRange.Line.Visible
Debug.Print .ShapeRange.Line.ForeColor.TintAndShade
Debug.Print .ShapeRange.Line.ForeColor.Brightness
Debug.Print .ShapeRange.Line.Transparency
End With
'But Is it possible to get the prior info without selecting the shape?
(because my activesheet is gonna be Sheets(6)
I do not want to move from sheets(6) to Sheets(1) and go back to Sheets(6)
This way does not work:
VBA Code:
Dim shp As Object: Set shp = Sheets(1).Shapes("pImgModel")
With shp
Debug.Print .ShapeRange.LockAspectRatio
Debug.Print .ShapeRange.Line.ForeColor.ObjectThemeColor
Debug.Print .ShapeRange.Line.Visible
Debug.Print .ShapeRange.Line.ForeColor.TintAndShade
Debug.Print .ShapeRange.Line.ForeColor.Brightness
Debug.Print .ShapeRange.Line.Transparency
End With
Thanks again !