Opening a document without adding the path

T

Tmf

Hey everyone.

I've got this code:

Workbooks.Open ("C:\Documents an
settings\tmf\Desktop\NY\TEST\template.xls")

ActiveWorkbook.SaveCopyAs "C:\Documents an
Settings\tmf\Desktop\NY\TEST\template1.xls"

I run this code from another file in the some folder "TEST". I woul
like to be able to run "template.xls" WITHOUT adding the path of th
folder "TEST". Of course the file with the code should be in the sam
folder.

I HTML one just say :\template.xls - how about VBA?

Please help me! :)

Best regards and thank you.

/Tomm
 

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