Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a workbook with a table similar to this:
Item No. | Description | PicPath ITEM1 | Item 1 description | C:/Images/a pic.jpg ITEM2 | Item 2 description | C:/Images/another pic.jpg On other sheets, I have vlookup functions calling records from the table. I also have image controls on those sheets, named the Item No.s (ITEM1, ITEM2). Is there a way I can programatically loop through those images and set the picture property? This is the basic idea of what I want to do, but it doesn't work. How do I need to fix it? Thank you very much. Code: Sub GetPics() Dim c as Image For each c in Controls c.Picture = LoadPicture(Application.WorksheetFunction.VLookup( c.Name,Range _("DataTable"),3,False)) Next c End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to programatically control a 3D-sum? | Excel Worksheet Functions | |||
Copy picture from image control | Excel Programming | |||
Displaying a Tif image in the Image Control | Excel Programming | |||
copy shape image into image control | Excel Programming | |||
Changing what is displayed in an image control programatically | Excel Programming |