Hi Experts,
I have used some shapes in a worksheet and grouped it named Group 1.
Now how can i get the height, widht , top, left, right, bottom values of Gropu 1.
Thanx in Advance.
Hi Experts,
I have used some shapes in a worksheet and grouped it named Group 1.
Now how can i get the height, widht , top, left, right, bottom values of Gropu 1.
Thanx in Advance.
Hi,
This would give you
Code:Sub kTest() Dim objGrp As Object Set objGrp = Worksheets("Sheet1").Shapes("Group 1")'<< adjust the sheet,shape(group) name With objGrp Debug.Print "Height:" & .Height Debug.Print "Top:" & .Top Debug.Print "Width:" & .Width Debug.Print "Left:" & .Left End With End Sub
Cheers !
Excel Range to BBCode Table
Use Social Networking Tools If You Like the Answers !
Message to Cross Posters
@ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)
Bookmarks