R
Rob Geraghty
Hi,
In Word it is possible to put text into the "Title" property of a template
which will then become the default file name when saving a document created
with the template. However, the Title property can only contain alphanumeric
characters or spaces. It appears that anything else causes the default
filename to end.
For example:
"My Default Filename" in the title field will present "My Default
Filename.doc" (or docx for Word 2007) as the default file name.
However, if the title field contains a non-alphanumeric character, the name
will cut short e.g.
"My-Default-Filename" in the title field will present "My.doc" as the
default file name.
Hyphens, underscores, periods and some other characters are valid in Windows
file names. If there any way I can use hyphens in the title field without
the name being cut short? Is there something which will make the code
reading the title property to treat something as a literal e.g. \- to insert
a hyphen?
I suspect the only way to do this may be to insert VBA code on a file save
event or attached to a button.
I haven't been able to find any mention of this aspect of the title property
anywhere. Lots of pages exist on the web explaining how to use the title
property to make a default file name but none mention this limitation on the
content.
Rob
In Word it is possible to put text into the "Title" property of a template
which will then become the default file name when saving a document created
with the template. However, the Title property can only contain alphanumeric
characters or spaces. It appears that anything else causes the default
filename to end.
For example:
"My Default Filename" in the title field will present "My Default
Filename.doc" (or docx for Word 2007) as the default file name.
However, if the title field contains a non-alphanumeric character, the name
will cut short e.g.
"My-Default-Filename" in the title field will present "My.doc" as the
default file name.
Hyphens, underscores, periods and some other characters are valid in Windows
file names. If there any way I can use hyphens in the title field without
the name being cut short? Is there something which will make the code
reading the title property to treat something as a literal e.g. \- to insert
a hyphen?
I suspect the only way to do this may be to insert VBA code on a file save
event or attached to a button.
I haven't been able to find any mention of this aspect of the title property
anywhere. Lots of pages exist on the web explaining how to use the title
property to make a default file name but none mention this limitation on the
content.
Rob