Error when Shapes.AddPicture can find the path

Occasional Visitor

Hi i have a macro that check different extension to find the correct pic on the pc and i do it via error check is error then check the next extension like this

 

On Error Resume Next

If Err.Number <> 0 Then
Err.Number = 0

....

It was working fine until now, that maybe some update now pop up a message saying that the file is not found in the path.

How can I disable the popup message or how can i check the path exist before adding the picture to resolve error

2 Replies
Hi, I have exactly the same issue. I think it might be something related with Internet explorer obsolescence, but I don't have a solution yet.