Hi.
I'm using code to import images into an Excel worksheet as objects.
The code looks like this:
But whenever this code is asked to import a filename that does not exist, the program stops and an error message comes up:
Run-time error '1004'
Cannot insert object
Is is possible to prevent the VBA code from stopping if there is no file which has the right filename?
I would like the code to just ignore the missing file and look for the next filename that's fed into it.
Thanks in advance for your help.
Bookmarks