Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modify Save-As filename selection.

Status
Not open for further replies.

prandall

Technical User
Mar 8, 2011
42
US
I am looking to have MS Word 2003 auto-populate the filename during a save-as.

By default Word selects the first "phrase."

The first line of each of my documents will be:

Lastname, Firstname dd-mm-yyyy

So I was hoping to save the file as:

Lastame, Firstname dd-mm-yyyy.doc

I have searched the forums and the interwebs but I'm not even getting close.

Thanks in advance.
 
It's not adding the .doc when you SaveAs? Strange!

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Lol, really hoping that was a joke.

I am speaking of the choice word makes for your filename. It automatically chooses the first phrase in your document and appends the .doc for your filename.

However, it will only use alphanumeric's.

So if your first line is:

Doe John July 22nd 2012​

Word will autopopulate the filename as:

Doe John July 22nd 2012.doc​

However, if your first line is:

Doe, John 7-22-2012​

Word will autopoulate the filename as:

Doe.doc​

It seems that it will use any alphanumeric up to the first non-alphanumeric. I am looking to see if Word will include the entire first line regardless of content ( except maybe slashes ).

Hope that clears it up a bit.

 

Seems that this would work as the first paragraph...
[tt]
Doe John 2012 07 01
[/tt]
BTW the yyyy mm dd structure will SORT in Windows Explorer in a more consistent manner than a mm dd yyyy structure.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
It defaults to stopping at the first non-alphanumeric. I do not know how to change that, although of course you CAN save the file directly as whatever you want with VBA. But the stopping at the first non-alphanumeric does not appear to be changeable.

Gerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top