defaulting word to save in different folders 
Author Message
 defaulting word to save in different folders

would like to be able to set up word so it can save to a different
folder based on a template or menu option like this:

If you are writing a proposal it defaults to the proposal folder,
everything else goes to any other folder.

Thanks for help



Sun, 06 Jun 2004 14:20:04 GMT  
 defaulting word to save in different folders
You will need to intercept Word's default commands for saving (FileSave,
FileSaveAs and FileSaveAll) and replace them with your own macros. For an
MVP article on this, see
http://www.mvps.org/word/FAQs/MacrosVBA/InterceptSavePrint.htm

Your FileSaveAs routine will look something like the following:
With Dialogs(wdDialogFileSaveAs)
    Select Case ActiveDocument.AttachedTemplate
        Case "Proposal.dot"
            .Name = "C:\Proposals\" & ActiveDocument.Name
            .Show
        Case "Letters.dot"
            .Name = "C:\Letters\" & ActiveDocument.Name
            .Show
        Case Else
            .Name = "C:\" & ActiveDocument.Name
            .Show
    End Select
End With


Quote:
> would like to be able to set up word so it can save to a different
> folder based on a template or menu option like this:

> If you are writing a proposal it defaults to the proposal folder,
> everything else goes to any other folder.

> Thanks for help



Sun, 06 Jun 2004 21:36:50 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Saving to a different folder

2. Programatically Saving an Item to a different Folder

3. Programatically saving to a different folder

4. Saving Contacts - Changing the Default Folder

5. Save Contact in non default folder from VB

6. Saving sent emails to non-default folder

7. Setting default folder when saving files during VB6 development

8. default folder selection when saving file?

9. Save Word-Dok under different name using VBA

10. changing to a different directory to save a word document using vb for applications

11. Saving in the Word Processors Default Dir.

 

 
Powered by phpBB® Forum Software