+ Reply to Thread
Results 1 to 2 of 2

help

  1. #1
    Ivica Lopar
    Guest

    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. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1