View Full Version : Solved: Default file
anthony20069
01-09-2009, 10:47 AM
Hi guys,
In MS Word, you are able to load the template.dot file as the default file - where you can edit certin settings etc. Is this possible to do within Excel?
I would like "Tools --> Options --> Secrurity --> "Remove personal information from file properties on save"" to be check everytime a users opens a Excel document.
Cheers
Anthony
Bob Phillips
01-09-2009, 11:14 AM
Every time you do a New you get the template.
You can create your own version by saving a appropriately formatted workbook as Book.xlt, and save it in the XLStart directory.
georgiboy
01-09-2009, 11:25 AM
Not sure on how to chek this option but you may be able to use something like this in a before save workbook event.
ActiveWorkbook.RemoveDocumentInformation (xlRDIPrinterPath)
ActiveWorkbook.RemoveDocumentInformation (xlRDIDocumentProperties)
ActiveWorkbook.RemoveDocumentInformation (xlRDIRemovePersonalInformation)
Hope this helps
anthony20069
01-13-2009, 03:06 AM
Every time you do a New you get the template.
You can create your own version by saving a appropriately formatted workbook as Book.xlt, and save it in the XLStart directory.
Sorry for my stupidiness :), where and how do you change the XLStart directory?
cheers
Bob Phillips
01-13-2009, 03:10 AM
You don't, but you can find out where it is by typing
?Application.StartupPath
in the immediate window.
anthony20069
01-13-2009, 03:17 AM
which immediate window?
Bob Phillips
01-13-2009, 03:53 AM
The VBIDE immediate window.
anthony20069
01-13-2009, 04:00 AM
aagh ok, cool thanks. So i did that and the text changed to
Print Application.StartupPath
whats meant to happen?, when i save it and open again nothing is printed anywhere?
Bob Phillips
01-13-2009, 05:51 AM
That means that you put it in a code module in a macro, not the immediate window. If you put it in the immediate window you it will return the directory path.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.