Thread: help
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Leith Ross[_265_] Leith Ross[_265_] is offline
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