Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Working with cells and images

Okay, I have looked everywhere but cannot find the topic that initially
brought me he automatically centering an image over a single cell.
I have hundreds of images in a spreadsheet, each "floating" over a
specific cell, one per row, etc. What I need to do is center each image
over its cell. I have gotten past the initial stage of selecting all
the images, but I am stuck now.

Any suggestions??
thank you.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Working with cells and images

Images are in Shape objects and each Shape has a .TopLeftCell if you need to
find what cell it is "in" (at least the top left corner). Then they also
have a .Top and .Left, to set their precise location, and a .Width and
..Height, to control their size.

Cells (or any Range) also have a .Top, .Left, .Width, and .Height. So you
can use these to figure the proper values for the image or vice-versa. It
depends on whether you want to change the size of the picture to fit the cell
or the size of the cell to fit the picture.

--
- K Dales


"alenhart" wrote:

Okay, I have looked everywhere but cannot find the topic that initially
brought me he automatically centering an image over a single cell.
I have hundreds of images in a spreadsheet, each "floating" over a
specific cell, one per row, etc. What I need to do is center each image
over its cell. I have gotten past the initial stage of selecting all
the images, but I am stuck now.

Any suggestions??
thank you.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Working with cells and images

I understand what you mean by each shape having a space it is in, and
each cell having those same confines, but I don't understand how to
relate the two.

For example I have an image... call it giovanni-particolare.jpg hanging
out on top of B9. now I have already scaled all my images to be the
same height (80 pixels), and adjusted my row height to be constant (84
pixels), so I don't want to change the size of anything. how do I say I
want 2 pixels from the top?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
working with images Kirk Excel Discussion (Misc queries) 3 March 17th 09 04:26 PM
Is there a way to insert images into unlocked cells martin Excel Discussion (Misc queries) 1 December 15th 08 10:51 PM
vlookup images within cells in another workbook Lee-anne Excel Worksheet Functions 3 December 12th 07 10:39 PM
how can you link images to cells? .: usman :. Excel Discussion (Misc queries) 2 December 12th 05 07:46 PM


All times are GMT +1. The time now is 04:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"