Aspect ratio of a Comment image

  • Thread starter Thread starter Michael Singmin
  • Start date Start date
M

Michael Singmin

Hello Group,

This is a difficult question on Comments because the renowned expert
on Comments, Debra D, has not found a solution, yet.

I am creating an art gallery in a worksheet. Because Comments are so
economical in storing images, I want to use this method.

Fine art comes in all shapes and sizes.
When the art arrives in the comment, the shape is roughly square.
I have to manually reshape it to get it back to its original aspect.

Is there any VBA code that will achieve the same ?

Thanks,

Michael Singmin
 
Import the image as a picture

get the height and width

set the comment height and width to match

delete the imported image
 
Well done Tom,

Your pseudo code was perfect because I leant very much more.
Besides getting the perfect solution for my project, I also learnt
how to get the parameters of a picture and how to feed them
into the comment image. I also gained valuable insight into counting
shapes, counting pictures and objects.

Much appreciated,

Michael
==========================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top