Open file from same path

  • Thread starter Thread starter Kashyap
  • Start date Start date
K

Kashyap

How to open another excel file from the same path of this file without giving
the full path using macros?
 
Kashya, you may use CHDrive and CHDir as below

ChDrive "c"
ChDir "c:\temp\"
Workbooks.Open "1.xls"

If this post helps click Yes
 
How to open another excel file from the same path of this file without giving
the full path using macros?

Workbooks.Open ActiveWorkbook.Path & "\OtherFileName.xls"
 

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