Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: auto backup Word file periodically

09 May 2017   #1
BlancheBC

win7x64
 
 
auto backup Word file periodically

Hello.

I know that I can backup Word files when saving and closing your file by checking "Always create backup copy" box in Word Options.
But can I make it auto backup periodically ? For example, every 5 minutes when I'm editing the file . It will much more safer to me. Any help will be appreciated. I'm using office2010


My System SpecsSystem Spec
.
09 May 2017   #2
Barman58

Windows 10 Pro x64 x2 Windows 10 Enterprise x64, Ubuntu
 
 

There is a built in function that has been in Word from the very beginning - this creates a hidden copy of the working file that is recoverable (automatically usually), after restarting work following a system failure

Have not used Office 2010 in a long time but the control for this feature is under save in the options in Word 2016

auto backup Word file periodically-capture.png


My System SpecsSystem Spec
12 May 2017   #3
Rachal

windows 7
 
 

Hi,BlancheBC

As Barman said, in Word 2016 there is a auto save option to do that for you. But this is not available in word 2010. So if you want to do that in word 2010, you can write vba code as a workaround. Here is a close macro which may meet your needs, you can try it:

Code:
Sub AutoOpen()
  Dim strBackupPath As String
 
  nReturnValue = MsgBox("Do you want to open AutoBackupDocument?", 4, "Auto Backup Document")
  If nReturnValue = 6 Then
    Call AutoBackupDocument
  End If

End Sub

Sub AutoBackupDocument()
  Dim dtNewBackupTime As Date
  Dim strFilePath, strFileName As String
  Dim strFileFormate As String

  strFileFormat = Right(ActiveDocument.Name, 4)
 
  If StrComp(strFileFormat, ".doc", vbTextCompare) = 0 Then
    dtNewBackupTime = Now + TimeValue("00:05:00") ' Change the "00:05:00" to the real backup interval time you want.
    strFilePath = ActiveDocument.Path
    strFileName = Left(ActiveDocument.Name, Len(ActiveDocument.Name) - 4)
    ChangeFileOpenDirectory strFilePath
    ActiveDocument.SaveAs FileName:="C:\Users\Public\Documents\New folder\Test2\" & strFileName & "_backup.doc", ReadOnlyRecommended:=True ' Change the "C:\Users\Public\Documents\New folder\Test2\" as the real path which you need to put the backup file.
    ActiveDocument.SaveAs FileName:=strFileName & ".doc", ReadOnlyRecommended:=False
    Application.OnTime When:=dtNewBackupTime, Name:="AutoBackupDocument"
    CreateObject("Wscript.shell").popup "An new backup:" & strFileName & "_backup.doc", 2, "Auto close this box after 2s"
    Else
    If StrComp(strFileFormat, "docx", vbTextCompare) = 0 Then
      dtNewBackupTime = Now + TimeValue("00:05:00") ' Change the "00:05:00" to the real backup interval time you want.
      strFilePath = ActiveDocument.Path
      strFileName = Left(ActiveDocument.Name, Len(ActiveDocument.Name) - 5)
      ChangeFileOpenDirectory strFilePath
      ActiveDocument.SaveAs FileName:="C:\Users\Public\Documents\New folder\Test2\" & strFileName & "_backup.docx", ReadOnlyRecommended:=True ' Change the "E:\Temp\backup\" as the real path which you need to put the backup file.
      ActiveDocument.SaveAs FileName:=strFileName & ".docx", ReadOnlyRecommended:=False
      Application.OnTime When:=dtNewBackupTime, Name:="AutoBackupDocument"
      CreateObject("Wscript.shell").popup "An new backup:" & strFileName & "_backup.docx", 2, "Auto close this box after 2s"
    End If
  End If
End Sub
I just find that in this link, also attach it here

https://www.datanumen.com/blogs/2-qu...-periodically/

Hope it will also help.
My System SpecsSystem Spec
.

12 May 2017   #4
Barman58

Windows 10 Pro x64 x2 Windows 10 Enterprise x64, Ubuntu
 
 

The autosave has been present in every word version I have supported - Starting from Word (long before they added Year numbers

Microsoft Word Autosave
My System SpecsSystem Spec
20 May 2017   #5
BlancheBC

win7x64
 
 

Thanks all! I think I get my answer! thanks a lot!
My System SpecsSystem Spec
Reply

 auto backup Word file periodically




Thread Tools




Similar help and support threads
Thread Forum
Change DOC file association back to Word 2003, after Word 2016 install
Hello everyone Until yesterday, I had only Word 2003 and Word 2010 on my computer. When I double-clicked a DOC file, it would open it in Word 2003. When I double-clicked a DOCX file, it would attempt to open it in Word 2010. I could open a DOCX file in Word 2003 if I first ran Word 2003 by...
Microsoft Office
Help! Pinned File Explorer Items Periodically Disappearing
I think the title is pretty much self-explanatory. This is really freaking annoying, and I swear, today it's happening every ten minutes. I have a number of non-library folder locations I use regularly, including one in the normally hidden user application data folders - namely Photoshop Presets -...
General Discussion
Word could not create the work file. Check the Temp... Word 2010
I am running Windows 7 Home Premium 64-bit and Office 2010. All of a sudden, when I tried to paste text I copied from an internet page, I got a message "Word could not create the work file. Check the temp environment variable" . It worked fine this morning and is working fine now. I had...
Microsoft Office
Way to recover unsaved word docs that aren't in auto-backup folder?
I'm wondering if there's a way to recover documents that were lost during a PC reset, which are not appear in the auto-backup folder. Initially, after a forced reset, they did appear to be recovered, but then another reset was made, which forced Word to close, with all those documents still...
Microsoft Office
Use bat file to auto backup
I use to know how to do bat files, but it has been many years. Age has gotten to me and with some problems with my computer system, I'm wondering how I can backup certain files onto my USB drive when I turn "OFF" the computer. For example, when I tell windows 7 to power down, run this bat file...
Backup and Restore


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 10:00.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App