D
Dennis Kuhn
I've created a template in Excel97, but I'm not able to install it on
each and every computer that will be using it.
Normally, I'd like to put the file in the computer's Templates
directory so the user does a File->New... and uses the template file
that way. However, I'm forced to put the file out on a network
instead, which means the users will be using File->Open... instead.
Which means they can start entering data, and then hit the Save button
and over-write my template with a file that's got data entered into
it.
In the past, I've tried setting the Read Only property of the file,
and also automated a "File->Save As..." action using the SendKeys to
make the file type "Spreadsheet" (instead of "Template") and the
filename is "Type Your Filename Here.xls".
Neither solution is very elegant, I know.
Therefore, I am on a quest for a more elegant solution. I'd like to
trick Excel into thinking that the file was opened with "File->New"
with VBA code, if that's possible. It seems to me that THAT would be
the easiest solution. Is there some internal property that I can
toggle to make that happen? Or something similar?
Dennis
each and every computer that will be using it.
Normally, I'd like to put the file in the computer's Templates
directory so the user does a File->New... and uses the template file
that way. However, I'm forced to put the file out on a network
instead, which means the users will be using File->Open... instead.
Which means they can start entering data, and then hit the Save button
and over-write my template with a file that's got data entered into
it.
In the past, I've tried setting the Read Only property of the file,
and also automated a "File->Save As..." action using the SendKeys to
make the file type "Spreadsheet" (instead of "Template") and the
filename is "Type Your Filename Here.xls".
Neither solution is very elegant, I know.
Therefore, I am on a quest for a more elegant solution. I'd like to
trick Excel into thinking that the file was opened with "File->New"
with VBA code, if that's possible. It seems to me that THAT would be
the easiest solution. Is there some internal property that I can
toggle to make that happen? Or something similar?
Dennis