Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 363
Default Insert picture from filename & path in sheet's cell

If i have a pictures filename & path (EG. Z:My Documents\Pictures\Picture 1.jpg) on a sheet in a
cell,
is it possible to using vb to have the picture(If Filename & Path are still valid that is) placed on
the sheet ?
I have code that can propmt a user for a selection of an image, but i do not know HOW/IF it can be
modified to call the Picture selection by the cells value.

Does anyone know if this is a possibility?

Corey....


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Insert picture from filename & path in sheet's cell

Lets say that in cell B9 we have:
C:\Documents and Settings\Owner\My Documents\My Pictures\100_0061.JPG

then:

Sub cory()
Dim s As String
s = Range("B9").Value
Range("Z100").Select
ActiveSheet.Pictures.Insert(s).Select
End Sub

will get the picture and insert it near Z100.
--
Gary''s Student - gsnu200737


"Corey" wrote:

If i have a pictures filename & path (EG. Z:My Documents\Pictures\Picture 1.jpg) on a sheet in a
cell,
is it possible to using vb to have the picture(If Filename & Path are still valid that is) placed on
the sheet ?
I have code that can propmt a user for a selection of an image, but i do not know HOW/IF it can be
modified to call the Picture selection by the cells value.

Does anyone know if this is a possibility?

Corey....



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 do I display the filename and path in a cell? DianePDavies Excel Discussion (Misc queries) 9 June 30th 09 09:35 PM
Freeze filename and path in cell Constantly Questioning Excel Discussion (Misc queries) 2 October 29th 08 06:48 PM
how to insert the path and filename into cell in excel 2002 fuzzylinux Excel Discussion (Misc queries) 2 June 4th 08 09:24 PM
how do I insert picture into cell so vlookup can return picture? ah Excel Worksheet Functions 1 May 1st 07 04:38 AM
Sub to extract path from hyperlink formula and insert picture into comments Max Excel Programming 12 March 3rd 06 03:01 PM


All times are GMT +1. The time now is 10:37 PM.

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"