Error:Subscript out of range

  • Thread starter Thread starter Jay
  • Start date Start date
J

Jay

Thanks in advance.

My Excel file (File1) wants to use SaveCopyAs to save File2 in a differnent
folder.
---- From File1 -----
Application.Workbooks("File_2").SaveCopyAs Filename:=

This code gives an error:Subscript out of range.
How can I access File2 from File1 where they reside in different folders.

Jae
 
I think...

Make sure you include the file extension, too.

like:
Application.Workbooks("File_2.xls").SaveCopyAs Filename:=...
 

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