Save Template Question.

M

Mark

Hi,

I would like to know if it is possible when saving a
template document via 'Save As' function, that
the 'filename' value that appears, can be different to the
one that appears (which is the same as the name of the
file).

example.

i open a template called 'temp.doc'
i modify document
I click 'save as'
value that appears in 'file name:' field shows temp.doc
Can i set something in the template so that what displays
is NOT 'temp.doc'. (i know i can overtype this)
 
J

Jezebel

In the template, create a macro called FileSaveAs containing this code:

With Dialogs(wdDialogFileSaveAs)
.Name = "My choice of filename"
.Show
End With
 
S

Suzanne S. Barnhill

Note that if you are opening something called temp.doc, it is not a
template. Templates are .dot files, and if you open them they cannot be
saved as documents, only as templates. If you create a new document based on
a template, the suggested filename will be either the title property of the
template (if any) or the first text appearing in the document.
 
J

Jezebel

You can't through the file menu, but you can use VBA to save a template as a
document, simply by

ActiveDocument.FileSaveAs "XXX.doc"

You appear to end up with a normal document, although there might well be
nefarious consequences not obvious to the naked eye. Presumably the menu
save option is disabled for a reason.
 

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