Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 789
Default Refereing to a picture in a excel cell

On Nov 28, 9:48 am, Jerry Manner wrote:
On 28 nov, 10:37, wrote:





On Nov 28, 8:59 am, Jerry Manner wrote:


Hi


I am creating an excel template of which the first sheet has lots of
rows. Each row represents a record with data in it ( text, numers and
a small picture)
On the other sheets I refer to cells on the first sheet. I do that
with the formula ( for example) =Sheet1!P5.


This works fine for text and numbers but not for the picture. How can
I refer from another sheet to a cell on the first sheet that contains
a picture?


Any help will be appreciated.


Regards


Hi
Cells in excel don't contain pictures, so you cannot refer to the
picture in a cell. Pictures can have a position relative to a cell,
which you can capture using VBA. You would then have to copy the
picture and paste to a location on your new sheet - all a bit fiddly.
Access cells can contain pictures and other objects. Are you sure you
don't want to be in Access?


regards
Paul


Hi

The pictures ( and text and numbers) are inserted by an external
program on the first excelsheet. You said that a cell cannot contain a
picture, but I can use the Insert -- Picture to place a picture in a
cell. Or is that something different.
Access is not an option in my system.

Regards- Hide quoted text -

- Show quoted text -


Hi
You will find that the picture is not "in" the cell. The picture has a
TopLeftCell property, which is the cell address of the top left corner
of the image. You can drag the image elsewhere on the sheet, so it is
not in the cell or attached to it in any way.
To capture a picture you would have to loop through all the pictures
on the sheet and check to see if the TopLeftCell of the picture is in
the row you are looking it. Then you could select that picture and
copy it to your new sheet. Things like comments and buttons count as
graphic objetcs too, so you would have to be careful not to include
those.
This can be done with VBA but not otherwise I think. Google this
newsgroup on "copy pictures in a range" or "delete pictures in a
range" to see some code.

regards
Paul
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
How can I link a picture to a particular cell in excel? scottykaminski17 Excel Discussion (Misc queries) 2 April 22nd 23 09:05 AM
Inserting a Picture using Cell as picture name. the-jackal Links and Linking in Excel 12 November 10th 08 09:21 AM
How can I pop up a picture when a cell is clicked on Excel? Hamlet Excel Discussion (Misc queries) 2 August 29th 08 08:16 PM
how do I insert picture into cell so vlookup can return picture? ah Excel Worksheet Functions 1 May 1st 07 04:38 AM
Can a picture be inbeded in an excel cell SCARSON Excel Discussion (Misc queries) 2 December 21st 05 12:41 AM


All times are GMT +1. The time now is 07:17 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"