ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Microsoft Visual Basic (https://www.excelbanter.com/excel-programming/345394-microsoft-visual-basic.html)

ecpl_3

Microsoft Visual Basic
 
how do I get the reference of the cell where a pictue/shape resides?

Chip Pearson

Microsoft Visual Basic
 
Try something like the following:

Dim SH As Shape
Set SH = ActiveSheet.Shapes("TheShape")
Debug.Print SH.TopLeftCell.Address


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"ecpl_3" wrote in message
...
how do I get the reference of the cell where a pictue/shape
resides?





All times are GMT +1. The time now is 12:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com