Open only existing Excel Files in a given Range

  • Thread starter Thread starter Matty C
  • Start date Start date
M

Matty C

Hi All,

I need to compile data from multiple Excel files into one. The file
are named "string" + # + "string" and the #'s are within the range o
274 to 307 but there are some numbers missing. Is there any way t
tell my macro to only open existing files within my range?

Thank
 
try opening each f using an onerror statement to bypass those that don't
exist.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top