Image Not Found

millzner

New Member
Joined
Nov 28, 2008
Messages
28
Working on an excel VBA application that I can enter a ID Number and will return employee info, including a Picture into excel worksheet. I can do all of this fine. What I need is any easy way to get the program to continue when there isn't an image of the employee on file.

Any thoughts??
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Read through the Post and unless I read it wrong it looks for values using a Userform Interface and returns values from cells. I am doing almost the identical thing but here is my problem. I have 6 columns of data, Column A is the Employee Number, and Column F is the employee Image File Name. The employee number would be something like 123456 and the Image would be 123456.JPG. The problem is that there is a chance that the image 123456.JPG does not exist in the folder I have and would like to be able to continue with the program without crash and maybe insert a default image. I can do this if the Image cell was blank but can't figure out how to do it with values in all the cells.

And if this code was in your post I appoligize for missing it but I didn't see that.
 
Upvote 0
Perhaps

Code:
On Error Resume Next
'
'code to retrieve picture
'
On Error GoTo 0
 
Upvote 0

Forum statistics

Threads
1,214,636
Messages
6,120,668
Members
448,977
Latest member
moonlight6

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top