#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default help

I have program he moves pictures from file in excel worksheet and print
out.I wont every time I add path of picture in list1.I wont to have view
picture in image1.
Sorry about my Englich.
Thanks anyway


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default help


Hello Ivica Lopar,

Here is the code to load Image1 with a picture from Listbox1, ListBox1
must contain the full path to the picture, e.g. "c:\My
Document\Pictures\img001.jpg"

Dim ImgPath

If ListBox1.ListIndex = -1 Then Exit Sub
ImgPath = ListBox1.List(ListBox1.ListIndex)
Image1.Picture = StdFunctions.LoadPicture(ImgPath)

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=484595

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



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