Removing the .doc extension in the header

J

JC Home

I have created a template with the filename in the header but would like it
to automatically remove the .doc extension. Any suggestions?

Thanks!
 
J

Jonathan West

JC Home said:
I have created a template with the filename in the header but would like it
to automatically remove the .doc extension. Any suggestions?


You can set the Caption property of the ActiveWindow object of the document
to any text you want.
 
C

Charles Kenyon

This can't be done easily.

1) You can change the Windows folder option to not show extensions of known
file types. I recommend that you do _not_ do this. It will cause you
problems at some point.

2) You can put the name of your document (without the extension) in a custom
document property and use a DOCPROPERTY field to display that. You can write
a macro to do this and intercept the Save and SaveAs commands as well as the
FileClose command to change the document property and update the field. This
is a lot of work for three letters and is far from foolproof.
 

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