Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Is there any way to attach a jpg thumbnail to a row

I am useing Excel as a data base and would like to attach jpg thumnail to a
row. Is this possible? Thanks for your help
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Is there any way to attach a jpg thumbnail to a row

can you do it with Insert=Picture from File?

can you do it with pasting the picture from the clipboard.

After it is in the worksheet. right click on it and see if you can select
format=Protection Tab, move with cell


--
Regards,
Tom Ogilvy


"Denny Smith" <Denny wrote in message
...
I am useing Excel as a data base and would like to attach jpg thumnail to

a
row. Is this possible? Thanks for your help



  #3   Report Post  
Posted to microsoft.public.excel.programming
baj baj is offline
external usenet poster
 
Posts: 24
Default Is there any way to attach a jpg thumbnail to a row

Hi,

I suppose you are able to select the cell that contains the name of the
jpg-file you want to show and pass it in "name" in the next procedure,
the object "photo" is in fact a userform in which you are going to
project the real photo.
Another MUST here is that the JPG-pictures are in the same directory of
your Excelfile because of the path in the procedure.
You also have to produce a jpg-file called no.jpg (with the message :
No Photo available) in case there is no picturename available in the
selected cell...

Well have a look, and try it out...



Sub loading_photo(name As String, photo As Object)

Dim picturename As String, complete As String, path As String

picturename = name & ".jpg"
path = ThisWorkbook.path
complete = path & "\" & picturename

If FileExists(picturename) Then
photo.Picture = LoadPicture(complete)
photo.PictureSizeMode = fmPictureSizeModeClip

Else
' no.jpg has to be a jpg with the message : No Photo Available
complete = path & "\" & "no.jpg"
photo.Picture = LoadPicture(complete)
photo.PictureSizeMode = fmPictureSizeModeClip

End If

End Sub


Bye
Baj

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
Thumbnail of a chart? IanW[_2_] Charts and Charting in Excel 0 September 2nd 08 06:45 PM
Thumbnail View tmvigil95 Excel Discussion (Misc queries) 3 January 22nd 08 07:22 PM
Thumbnail Image on Rollovers Martyn Kingston Excel Discussion (Misc queries) 1 January 12th 07 12:15 PM
Thumbnail ? razornt New Users to Excel 2 March 17th 05 12:20 AM
thumbnail Kevin Excel Programming 1 December 7th 04 11:39 AM


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

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

About Us

"It's about Microsoft Excel"