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"
 
Back
Top