langhout
04-08-2008, 01:38 PM
This is the first time for me on this forum opening a thread. Please help me if i'm doing something wrong.
I'm looking for a code to get the path where a shortcut to a template is opened.
for each project a have a standaard directory and subdirectory with in the subdir calculation a shortcut to an excel template file called calculation.xlt.
the standaard directory lay-out is copied to and renamed to another directory with active projects.
When i open the shortcut to the template file i want to have the path where i opened the shortcut to save the opened file with the right name accourding to the name of the project.
I tried activeworkbook.path and thisworkbook.path but there empty because i started from a template which i not not saved yet. Also curdir doesnt work.
I'm looking for a code to get the path where a shortcut to a template is opened.
for each project a have a standaard directory and subdirectory with in the subdir calculation a shortcut to an excel template file called calculation.xlt.
the standaard directory lay-out is copied to and renamed to another directory with active projects.
When i open the shortcut to the template file i want to have the path where i opened the shortcut to save the opened file with the right name accourding to the name of the project.
I tried activeworkbook.path and thisworkbook.path but there empty because i started from a template which i not not saved yet. Also curdir doesnt work.