Call an XLS that is one directory “UP†from where the VBS file is?

C

CRayF

How do I call the XLS that is one directory “UP†from where the VBS file is
located? (VBS is located in a subdir) I tried
=== XLApp.Workbooks.Open "..\RaceBetting.xls" === but that did not work.

RaceBetting.vbs:
-----------------
Dim XLApp
Dim XLWkb
Set XLApp = CreateObject("Excel.Application")
XLApp.Visible = true
XLApp.Workbooks.Open "RaceBetting.xls"
XLApp.ActiveWorkbook.RunAutoMacros 1
 
A

arno

How do I call the XLS that is one directory “UP†from where the VBS
file is
located? (VBS is located in a subdir) I tried
=== XLApp.Workbooks.Open "..\RaceBetting.xls" === but that did not
work.

ChDir ".."

arno
 

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

Top