ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   help (https://www.excelbanter.com/excel-programming/345456-help.html)

Ivica Lopar

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



Leith Ross[_265_]

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



All times are GMT +1. The time now is 03:52 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com