Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 05-24-2012, 11:03 AM
Charles Kenyon Charles Kenyon is offline Word 2010 - Different Save Location for Different Templates? Windows Vista Word 2010 - Different Save Location for Different Templates? Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,535
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Yes, it is possible, but not easy. I would do this by putting an AutoNew in your macro-enabled template that changes the File Open directory (which is the default File Save directory).

The following macro will change the file save path and force an immediate save when a new document is created based on the template that contains the macro.
Code:
Sub AutoNew()
'
    Dim strNewPath As String
    strNewPath = "C:\desired location\" ' Set save location
    ChangeFileOpenDirectory strNewPath
    ActiveDocument.Save
End Sub
You would set the actual path in the line setting the value for strNewPath. Note that the path has to end with a backslash \

Users will need to have macros trusted in the template location. Note that this will temporarily set the place for File>Open if they try opening another document, just as it would if they were to manually save the file in that directory.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi location templates James m Outlook 0 05-23-2012 06:53 PM
Word 2010 - Different Save Location for Different Templates? Word 2010 save to new location youngdave55 Word 5 05-10-2012 12:12 AM
Word 2010 - Different Save Location for Different Templates? Tabs in MS Word 2010 templates ibsfsg Word 2 12-15-2011 04:54 AM
Word 2010 - Different Save Location for Different Templates? Creating templates for dummies in Word 2010 oceanclub Word 1 07-14-2011 08:39 PM
Promt for save location when sendimg mail blegs38552 Outlook 0 01-31-2010 07:29 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:15 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft