http://xlam.ch/soscq/index.htm
Gruss Hary
PS.: Schalte die Automatische Speicherung ein ;-)
VB-Code: |
Sub StartAutosave() Autosave End Sub Sub Autosave() Dim WB As Workbook, NextInst As Date On Error GoTo Fehler For Each WB In Workbooks If WB.Name <> "PERSONL.XLS" Then WB.SaveCopyAs _ WB.Path & "\" & WB.Name & ".tmp" End If Next NextInst = Now + TimeValue("00:05:00") Application.OnTime NextInst, "Autosave" Fehler: If Err.Number <> 0 Then MsgBox "Fehler: " & Err.Number & vbLf & Err.Description: Err.Clear Application.EnableEvents = True Application.DisplayAlerts = True If Err.Number <> 0 Then Resume Next End Sub Sub StopAutosave() Dim NextInst On Error Resume Next Application.OnTime NextInst, "Autosave", , False End Sub |