Add Userform Image from Cell Picture Address

C

Corey

I am in the process of filling numerous Textboxes when a value is selected from a Listbox.
This part is OK and working.

But now i have 2 x Images on the userform (Imag1 and Image2)

How can i have the picture address(location on my PC) to imput the picture into the Image?
The value in cell T1 will be something like:" \\Server\My Pictures\ABC\123\123A.jpg"

Corey....
 
B

Bernie Deitrick

Corey,

UserForm1.Image1.Picture = LoadPicture(Worksheets("Sheet1").Range("T1").Value)

HTH,
Bernie
MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top