Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
 
Posts: n/a
Default Auto-save document to specific location (dir) and with spec. name?

Situation:

- Have a template that needs to be saved to a specific location and
with a specific filename after use. How?


Name and location:


c:\referees\060222 Personalmeeting.doc


06 = year
02 = month
22 = day


There are a lot of people saving these documents, but hardly any know
how a file structure is organized.. Problem!


Thanks,
Øystein

  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Cooz
 
Posts: n/a
Default Auto-save document to specific location (dir) and with spec. name?

Hi Øystein,

Record any macro, say record clicking the B-button on the Standard toolbar,
and be sure to choose the template under 'Store macro in'.
Choose Tools | Macro Macro's..., select your macro and choose Edit. The
VBA-editor opens.
Replace the entire macro by the following:

Sub AutoNew()
Dim dlg As Dialog

Set dlg = Application.Dialogs(wdDialogFileSaveAs)
With dlg
.Name = "C:\referees\" & Format(Date, "yyMMdd") & "
pesonalmeeting.doc"
.Show
End With

End Sub

Click the Save button in the VBA editor to save the template. As soon as a
user makes a new document based on the template, the SaveAs-dialog appears,
suggesting the standard name.

Note that if "C:\referees" does not exist, the macro suggests to save the
file in My Documents.

Good luck,
Cooz
--
PS: If this is a satisfying answer to your question and you're logged in via
the Microsoft site, please click Yes to "Did this post answer the question?".
Thanks.

" wrote:

Situation:

- Have a template that needs to be saved to a specific location and
with a specific filename after use. How?


Name and location:


c:\referees\060222 Personalmeeting.doc


06 = year
02 = month
22 = day


There are a lot of people saving these documents, but hardly any know
how a file structure is organized.. Problem!


Thanks,
Øystein


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:27 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"