ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Image Loading (https://www.excelbanter.com/excel-programming/408959-re-image-loading.html)

sbweid

Image Loading
 
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
--
Steve


"Nigel" wrote:

Me.Image1.Picture = LoadPicture(file path & filename)


--

Regards,
Nigel




"Greg B" wrote in message
...
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



Nigel[_2_]

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

--

Regards,
Nigel




"sbweid" wrote in message
...
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
--
Steve


"Nigel" wrote:

Me.Image1.Picture = LoadPicture(file path & filename)


--

Regards,
Nigel




"Greg B" wrote in message
...
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





All times are GMT +1. The time now is 10:39 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com