Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Please Register to Remove these Ads

Please Register to Remove these Ads



Closed Thread
  #1  
Old 08-08-2006, 03:44 PM
sschroeder sschroeder is offline
Registered User
 
Join Date: 08 Aug 2006
Posts: 1
sschroeder is becoming part of the community
Embed image in cell

Please Register to Remove these Ads

I have a dataset that includes the path and optionally an HTTPS URL to an image. Is it possible to embed this image in a cell?

Short of that what might be some other options?

Thank you
  #2  
Old 08-08-2006, 04:05 PM
CLR
Guest
 
Posts: n/a
RE: Embed image in cell

You could insert the image into the Comment Box for that cell which would pop
up whenever you mouseover the cell........

Vaya con Dios,
Chuck, CABGx3



"sschroeder" wrote:

>
> I have a dataset that includes the path and optionally an HTTPS URL to
> an image. Is it possible to embed this image in a cell?
>
> Short of that what might be some other options?
>
> Thank you
>
>
> --
> sschroeder
> ------------------------------------------------------------------------
> sschroeder's Profile: http://www.excelforum.com/member.php...o&userid=37241
> View this thread: http://www.excelforum.com/showthread...hreadid=569566
>
>

  #3  
Old 08-08-2006, 04:20 PM
Zamdrist
Guest
 
Posts: n/a
Re: Embed image in cell

CLR wrote:
> You could insert the image into the Comment Box for that cell which would pop
> up whenever you mouseover the cell........


Yes, that would work for one, but how might I programmaticlly add
comments for each row (undetermined number) and set the comment fill
picture?

Thanks

  #4  
Old 08-08-2006, 04:35 PM
CLR
Guest
 
Posts: n/a
Re: Embed image in cell

My computer is having a brain-f**t so this might be sent twice, but I'm
leaving right now and will check my files and respond tomorrow if no one else
has.....gotta run now to get my Kitty from the Vet...........

Vaya con Dios,
Chuck, CABGx3


"Zamdrist" wrote:

> CLR wrote:
> > You could insert the image into the Comment Box for that cell which would pop
> > up whenever you mouseover the cell........

>
> Yes, that would work for one, but how might I programmaticlly add
> comments for each row (undetermined number) and set the comment fill
> picture?
>
> Thanks
>
>

  #5  
Old 08-08-2006, 05:15 PM
Zamdrist
Guest
 
Posts: n/a
Re: Embed image in cell

Thanks CLR

I figured out part of this:

Set Cm = Ws.Range("E2").AddComment
Cm.Shape.Fill.UserPicture Ws.Range("D2").Value

That will add a comment, and set the Comment to the picture value.

Only I need to zip down the rows, however many there may be and do the
same for each. The number of rows is indeterminable.

Forgive me as I'm not familar with the Excel object library.

Thanks

  #6  
Old 08-08-2006, 05:20 PM
Zamdrist
Guest
 
Posts: n/a
Re: Embed image in cell

Thanks CLR

I figured out part of this:

Set Cm = Ws.Range("E2").AddComment
Cm.Shape.Fill.UserPicture Ws.Range("D2").Value

That will add a comment, and set the Comment to the picture value.

Only I need to zip down the rows, however many there may be and do the
same for each. The number of rows is indeterminable.

Forgive me as I'm not familar with the Excel object library.

Thanks

  #7  
Old 08-08-2006, 05:25 PM
Zamdrist
Guest
 
Posts: n/a
Re: Embed image in cell

Thanks CLR

I figured out part of this:

Set Cm = Ws.Range("E2").AddComment
Cm.Shape.Fill.UserPicture Ws.Range("D2").Value

That will add a comment, and set the Comment to the picture value.

Only I need to zip down the rows, however many there may be and do the
same for each. The number of rows is indeterminable.

Forgive me as I'm not familar with the Excel object library.

Thanks

  #8  
Old 08-09-2006, 09:34 AM
CLR
Guest
 
Posts: n/a
Re: Embed image in cell

Ok, here's the code I have.....it's a crude accumulation of stuff that I got
off the newsgroups, but it works. It plays off a list of hyperlinks created
with Jim Cone's Add-in called ListFiles,(available at
http://www.realezsites.com/bus/primi...e/products.php ) which
interrogates a directory and makes a list of links in excel. Then this macro
applys the comment boxes with pictures therein to each cell in the range.
It may not work exactly the same in your application, but might light the way
some and/or maybe your code could be worked in......


Sub PicsToCommentBoxs()
'================================================
'This macro will process a list of path/filenames for image files starting
'in cell B5, installing the image file from each cell into it's Comment Box.
'Images may be viewed by mouseover.
'Macro created 2/13/2006 by Chuck Roberts
'================================================
'This section sets the Range of cells to be processed, starting at B5, if
there
'are NO cells with a value, or one cell only (B5), or more than one.
Dim rng As Range, cell As Range
With ActiveSheet
If Range("B6").Value <> "" Then
Set rng = .Range(.Range("B5"), .Range("B5").End(xlDown))
ElseIf Range("b5") <> "" Then
Set rng = .Range("b5")
Else
End
End If
End With
'This section runs for each cell in the above range that contains a value.
For Each cell In rng
cell.Select
On Error Resume Next
If Selection.Value <> "" Then
Selection.AddComment
Selection.Comment.Visible = False
Selection.Comment.Text Text:=""
Selection.Comment.Visible = True
Selection.Comment.Shape.Select True

Selection.ShapeRange.LockAspectRatio = msoFalse
Selection.ShapeRange.Height = 150
Selection.ShapeRange.Width = 150

Selection.ShapeRange.Fill.ForeColor.RGB = RGB(255, 255, 255)
Selection.ShapeRange.Fill.UserPicture ActiveCell.Value
ActiveCell.Comment.Visible = False
Else
End
End If
Next
End Sub
hth
Vaya con Dios,
Chuck, CABGx3



"Zamdrist" wrote:

> Thanks CLR
>
> I figured out part of this:
>
> Set Cm = Ws.Range("E2").AddComment
> Cm.Shape.Fill.UserPicture Ws.Range("D2").Value
>
> That will add a comment, and set the Comment to the picture value.
>
> Only I need to zip down the rows, however many there may be and do the
> same for each. The number of rows is indeterminable.
>
> Forgive me as I'm not familar with the Excel object library.
>
> Thanks
>
>

  #9  
Old 08-09-2006, 10:49 AM
Zamdrist
Guest
 
Posts: n/a
Re: Embed image in cell

Thank you Chuck, this will definately help, much appreciated.

  #10  
Old 08-09-2006, 10:54 AM
CLR
Guest
 
Posts: n/a
Re: Embed image in cell

You're very welcome..........thanks for the feedback.

Vaya con Dios,
Chuck, CABGx3



"Zamdrist" wrote:

> Thank you Chuck, this will definately help, much appreciated.
>
>

  #11  
Old 12-16-2009, 07:21 AM
aalokjain aalokjain is offline
Registered User
 
Join Date: 23 Jul 2006
Posts: 2
aalokjain is becoming part of the community
Re: Embed image in cell

how do i pull images directly from the system path rather then entering them manually
  #12  
Old 12-16-2009, 03:56 PM
teylyn's Avatar
teylyn teylyn is offline
Forum Moderator
 
Join Date: 28 Oct 2008
Location: German in New Zealand
MS Office Version:2000 - 2010
Posts: 3,888
teylyn Has a higher level of understanding teylyn Has a higher level of understanding teylyn Has a higher level of understanding teylyn Has a higher level of understanding teylyn Has a higher level of understanding teylyn Has a higher level of understanding teylyn Has a higher level of understanding teylyn Has a higher level of understanding
Re: Embed image in cell

aalokajin, this is a three-year old thread. Please take a moment to read the forum rules, expecially rule #2 and then start your own thread.

Thanks
__________________
teylyn
If you want to say Thank you to a member, click the reputation icon in the title bar of the post you liked
Everyone needs a pat on the back every once in a while!
...How to Cross-post politely...
Things I do with the right side of my brain ...


Closed Thread

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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

Forum Jump