Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 02-21-2017, 03:05 PM
dwirony dwirony is offline Auto-saving word docs Windows 7 64bit Auto-saving word docs Office 2003
Advanced Beginner
 
Join Date: Oct 2016
Posts: 49
dwirony will become famous soon enough
Default

Try:

Code:
Public Sub FileSave()
ActiveDocument.ActiveWindow.Visible = True
ActiveDocument.Save
DoEvents
Application.OnTime _
When:=Now + TimeValue("00:05:00"), _
Name:="FileSave"
Application.StatusBar = "Saved: " & ActiveDocument.Name
ActiveDocument.Close
Application.Quit
End Sub
I believe this solution will work to save the one active document. Are you trying to save and close ALL documents on your computer at the specific time? In that case, you'll probably need some sort of loop to go through each document and save them. And that's beyond my knowledge of VBA :S

Last edited by dwirony; 02-21-2017 at 03:08 PM. Reason: Incorrect solution
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto-saving word docs Saving Merged Files into Sep Docs By Name and into PDF accessnewbie352 Mail Merge 15 07-02-2015 09:40 PM
Auto-saving word docs Word auto updating fields and changing numbers when saving to PDF OAEC Word 1 12-03-2013 08:01 PM
Text Shifting When Saving Word 2007 Docs DerekS Word 1 09-21-2013 02:42 AM
Auto-saving word docs Auto Saving in Word, Jamal NUMAN Word 3 01-19-2013 11:50 AM
Icons in the desktop move when saving docs ryochan Word 0 09-26-2009 02:12 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:04 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