Me.Image1.Picture = LoadPicture(path & file name) --> Error 53 File not found

I attach an excel file in which I attempt to load a JPEG into a UserForm image control.
Also attached is the graphic: Note_Icon.JPEG
I get Error 53 File not found.

'Graphic details:
    'Graphic name: "Note_Icon.JPEG"
    'Graphic size from its properties box: 34.0 KB
    'Graphic location from its properties box: "C:\Users\Roger\Desktop"
Code:
Me.Image1.Picture = LoadPicture("C:\Users\Roger\Desktop\Note_Icon.JPEG")

Run active X cmd_Button on sheet 1 - to load UserForm1
Rest of code is in UserForm1.

Please can you help me?
Thanks,
Kelvin4
Import-graphic-to-UserForm-v1.xlsm
Note-Icon.JPG
Kelvin4Asked:
Who is Participating?
 
Martin LissConnect With a Mentor Older than dirtCommented:
Are you absolutely certain that you have a path named "C:\Users\Roger\Desktop because there's nothing wrong with your code?
0
 
Kelvin4Author Commented:
Thanks, again
None of these scripts work:
Me.Image1.Picture = LoadPicture("C:\Users\Roger\Desktop\Note_Icon.JPEG")
Me.Image1.Picture = LoadPicture("Desktop\Note_Icon.JPEG")
Me.Image1.Picture = LoadPicture("Windows\Desktop\Note_Icon.JPEG")

Me.Image1.Picture = LoadPicture("C:\Users\Roger\Desktop\Note_Icon.JPEG") is taken from the Properties box, location value for Note_Icon.JPEG

I tried Me.Image1.Picture = LoadPicture("Desktop\Note_Icon.JPEG") as the address bar in Explorer (Windows7) only shows "Desktop"

How can I diagnose my way through this?
On the web, this error is not infrequently reported... but there again one trawls stuff up..

Kelvin
0
 
Martin LissOlder than dirtCommented:
Try

C:\Documents and Settings\Roger\Desktop\\Note_Icon.JPEG

if in fact there is a user named 'Roger'
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
Martin LissOlder than dirtCommented:
Otherwise do a search for it via Start|Search and use the path that you find.
0
 
Kelvin4Author Commented:
Ho Hum:
It is a 'JPEG image' but a .JPG file extension:
This works:
Me.Image1.Picture = LoadPicture("C:\TestImportFile to Excel\Note_Icon.JPG")

Foolish! I've yet to test out and explain some of the 'failed paths' reported (vs failed files).

Thanks
Kelvin
0
 
Kelvin4Author Commented:
Panic over.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.