Forum Discussion

jbrande1's avatar
jbrande1
Copper Contributor
May 12, 2022

Error when Shapes.AddPicture can find the path

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

  • Carlos_Diaz's avatar
    Carlos_Diaz
    Copper Contributor
    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.

Resources