Get image dimensions
Here is a trick. I ran the code below and added a watch for shp. Then
steped through the code looked inthe watch window to see the properties that
were available. Then I added the code to verify that i could read the
parameters.
Sub getdim()
For Each shp In Sheets("sheet1").Shapes
MyHeight = shp.Height
Mytop = shp.Top
Mywidth = shp.Width
Next shp
End Sub
"fishbyname" wrote:
I have a piece of code that sets a cells comment to be an image
i can set the width and height of this comment but i am trying to find
a way of setting this dynamically
what i need to do is go to an image and find out its width and height
then i can use these values to set the dimensions of the comment
is there a way to do this?
|