View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
joel joel is offline
external usenet poster
 
Posts: 9,101
Default want image to define the cell size

There is no way from the worksheet and it is tricky from VBA code. The
problem is the pcitures are not part of the worksheet cells. A picture sits
ontop of the cells and is independant of the cell locations.

Both cell and pictures are referenced to pixel locattions in the window.
they both havve properties : Left, Top, Height, Width. but you can't lock a
picture pixel location to a speadsheet pixel location. If you change the
width or height of the rows and columns, the picture doesn't move the cells
will move.

"Captain Canada" wrote:

Hi, I'm new to this forum, but not to XL. I know how to paste an image (e.g.
jpg) into XL and have it occupy however many cells as determined by its pixel
resolution; what I'd *like* to do is paste an image into a cell and force the
cell (and hence row and column) to expand to accommodate the image's size.
There's probably some dumb formating trick that I'm missing ... Anybody's
help would be much appreciated! Thanks.