Hi I am using the vba command
workbooks.open(filepath & file)
I get an error message when the specified filepath and file combination do not exist, as you might expect.

Is there any way to ignore this? The rest of my code is a set of loops to change the file name, following a structured format, so I know that certain file names don't exist whilst others do. I only want it to return data from files which do exist and ignore ones that don't.

Thanks