Template opens even from network drive?

OdinsDream

Well-known Member
Joined
May 19, 2002
Messages
541
I'm playing with templates. I've created one XLT file and saved it onto a network drive. I've searched my entire C:\ for the file, and it is not there.

Yet, when I run this code:

Workbooks.Add ("Test Blank.xlt")

... which you'll notice does not include any Path information, a new workbook is opened based on the template in the network drive. I'm not sure I understand. Since I created the template on this computer, has excel memorised the location of that file?

Is there a way to open the actual XLT file first, then use the Workbooks.Add statement to create a new blank workbook based on the already-open XLT? That's my goal - to reduce the amount of times I'm accessing the network drive. If I could open the template once, and then create copies repeatedly based on it, that would be perfect. If I run the above code with the workbook already open, though, I get a conflict message about not being able to open an already-open workbook. So, Excel is just going back to the network again.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,207,011
Messages
6,076,145
Members
446,187
Latest member
LMill

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top