Image Loading

G

Greg B

How do you get a imagebox on a userform to load a picture from a file?

I can not work this one out. I can not seem to work out the code needed to
activate the code.

Thanks

Greg
 
S

sbweid

Nigel, this does not work for me. I get a compile error: wrong number of
arguments or invalid property assignment. Here is my code:

Sub LoadPicture()
Dim Fname As String
Fname = ThisWorkbook.Path & "\Linda & Steve.jpg"
LeaderCare.Image1.Picture = LoadPicture(Fname)
End Sub
 
N

Nigel

Are you trying to load picture into a UserForm object or directly into a
worksheet?

--

Regards,
Nigel
(e-mail address removed)
 

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