Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would like to create a worksheet where I can store information on number
of items. Each row of the worksheet would store data on 1 item only, and the last cell of data would contain a link to an image of the item (C:\Users\Dad\Desktop\test.png). What I can not figure out is how to create the code to display the image in an Image control on my Userform. What I tried was: Image1.Picture = Range("E3").Value where Range("E3") contained C:\Users\Dad\Desktop\test.png. Is this do able? If so could someone point me in the right direction. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Image1.Picture = LoadPicture(Range("E3").Value)
Depending on the way you have things arranged you might need to do something like Worksheets("Sheet1").OLEObjects("Image1").Object.P icture = LoadPicture(Range("E3").Value Regards, Peter T "ordnance1" wrote in message ... I would like to create a worksheet where I can store information on number of items. Each row of the worksheet would store data on 1 item only, and the last cell of data would contain a link to an image of the item (C:\Users\Dad\Desktop\test.png). What I can not figure out is how to create the code to display the image in an Image control on my Userform. What I tried was: Image1.Picture = Range("E3").Value where Range("E3") contained C:\Users\Dad\Desktop\test.png. Is this do able? If so could someone point me in the right direction. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Andy Pope's button image editor; pasting icons to sheet then toolbar- why does image quality degrade? | Excel Programming | |||
Automatically adding image extension ".jpg" to end of image name | Excel Discussion (Misc queries) | |||
Is there any way to search image of my local drive with Image name or Image Title, Description | Excel Programming | |||
Displaying a Tif image in the Image Control | Excel Programming | |||
copy shape image into image control | Excel Programming |