Saving to specific file based on template used

  • Thread starter Thread starter Ed Riley
  • Start date Start date
E

Ed Riley

Does anyone know how to automatically save a document to a
specific folder based on the specific template used to
create the document? For example, letters go into folder
entitled letters and memoes into folder entitled memoes,
etc.
 
Ed,

Put the following two macros in the template (modified for your directory of
course):


Public Sub FileSave()
If Len(ActiveDocument.Path) = 0 Then
FileSaveAs
Else
ActiveDocument.Save
End If
End Sub

Public Sub FileSaveAs()
With Dialogs(wdDialogFileSaveAs)
.Name = "Type your directory path here\"
.Show
End With
End Sub
 

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

Back
Top