[mso] Re: Save word file by file name with mmddyy added to file name

  • From: Anne Robson <anne.robson@xxxxxxxxx>
  • To: mso@xxxxxxxxxxxxx
  • Date: Wed, 7 Apr 2010 15:51:06 +0100

I love this! I use this file naming convention all the time so anything that
saves me (a) having to remember the date and (b) type it in is very VERY
welcome!!!
Thank you!  I'm off to try it now.

Anne

On 1 April 2010 16:50, Chinell, David F (UTCFS) <David.Chinell@xxxxxx>wrote:

> Jerry:
>
> First, let me suggest you use the format YYYYMMDD. This has two
> benefits. It sorts out correctly in chronological order in Windows
> Explorer (or any other listing). It's immediately coherent
> internationally.
>
> Try something like this:
>
> activedocument.SaveAs filename:=replace(activedocument.name, ".doc",
> format(date, "YYYYMMDD") & ".doc")
>
> Or in a full-bore macro:
>
> Sub DateStamp()
>
> ActiveDocument.SaveAs _
>    FileName:=Replace( _
>        Expression:=ActiveDocument.Name, _
>        Find:=".doc", _
>        Replace:=Format(Date, "YYYYMMDD") & ".doc")
> End Sub
>
> *************************************************************
> You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or
> MicrosoftOffice@xxxxxxxxxxxxxxxx
>
> To send mail to the group, simply address it to mso@xxxxxxxxxxxxx
>
> To Unsubscribe from this group, visit the group's homepage and use the
> dropdown menu at the top.  This will allow you to unsubscribe your email
> address or change your email settings to digest or vacation (no mail).
> //www.freelists.org/webpage/mso
>
> To be able to share files with the group, you must join our Yahoo sister
> group.  This group will not allow for posting of emails, but will allow you
> to join and share problem files, templates, etc.:
> http://tech.groups.yahoo.com/group/MicrosoftOffice . This group is for
> FILE SHARING ONLY.
>
> If you are using Outlook and you see a lot of unnecessary code in your
> email messages, read these instructions that explain why and how to fix it:
> http://personal-computer-tutor.com/abc3/v28/greg28.htm
> *************************************************************
>


*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, visit the group's homepage and use the dropdown 
menu at the top.  This will allow you to unsubscribe your email address or 
change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to share files with the group, you must join our Yahoo sister group. 
 This group will not allow for posting of emails, but will allow you to join 
and share problem files, templates, etc.:  
http://tech.groups.yahoo.com/group/MicrosoftOffice . This group is for FILE 
SHARING ONLY.

If you are using Outlook and you see a lot of unnecessary code in your email 
messages, read these instructions that explain why and how to fix it:
http://personal-computer-tutor.com/abc3/v28/greg28.htm
*************************************************************

Other related posts: