Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 921
Default Setting up autorecovery problems

I am trying to forcefully set the autorecovery option to True for a
particular workbook. I've set the path for recovery, but when I call my
function it keeps stalling at my with statement "With Application.AutoRecover"


The big problem is I cannot find much in the way of help online for
autorecovery.


Sub SetAutoRecoverOptions()
'Set the AutoRecover options for the application
ChangeAutoRecoverSettings True, "\\CCT75-F3-FIL03\GLOBALSHARE01\PMD
PMO\F05 Files\Monthly-Project LE\02+10 Post Act Projects\Project over
$1MM\CIS\", 2

'Make sure this workbook uses them
ActiveWorkbook.EnableAutoRecover = True
End Sub

Function ChangeAutoRecoverSettings(Optional ByVal vEnable As Variant,
Optional ByVal vPath As Variant, Optional ByVal vTime As Variant)
With Application.AutoRecover
'Only set the property if a value was passed
If Not IsMissing(vEnable) Then
'Enable AutoRecover
.Enabled = vEnable
End If

'Only set the property if a value was passed
If Not IsMissing(vPath) Then
'Change the path to a central backup files area
.Path = vPath
End If

'Only set the property if a value was passed
If Not IsMissing(vTime) Then
'Save every AutoRecover file every 2 minutes
.Time = vTime
End If
End With
End Function
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 921
Default Setting up autorecovery problems

DUH!!!!

Excel 2000 does not have the option for Autorecovery, hence the problems
with my script.

I use 2003 at home and 2000 at work . . . ..

"Jeff" wrote:

I am trying to forcefully set the autorecovery option to True for a
particular workbook. I've set the path for recovery, but when I call my
function it keeps stalling at my with statement "With Application.AutoRecover"


The big problem is I cannot find much in the way of help online for
autorecovery.


Sub SetAutoRecoverOptions()
'Set the AutoRecover options for the application
ChangeAutoRecoverSettings True, "\\CCT75-F3-FIL03\GLOBALSHARE01\PMD
PMO\F05 Files\Monthly-Project LE\02+10 Post Act Projects\Project over
$1MM\CIS\", 2

'Make sure this workbook uses them
ActiveWorkbook.EnableAutoRecover = True
End Sub

Function ChangeAutoRecoverSettings(Optional ByVal vEnable As Variant,
Optional ByVal vPath As Variant, Optional ByVal vTime As Variant)
With Application.AutoRecover
'Only set the property if a value was passed
If Not IsMissing(vEnable) Then
'Enable AutoRecover
.Enabled = vEnable
End If

'Only set the property if a value was passed
If Not IsMissing(vPath) Then
'Change the path to a central backup files area
.Path = vPath
End If

'Only set the property if a value was passed
If Not IsMissing(vTime) Then
'Save every AutoRecover file every 2 minutes
.Time = vTime
End If
End With
End Function

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with setting up a billing budjet JoeStL Excel Worksheet Functions 1 November 25th 05 09:16 AM
Autorecovery Felix Excel Worksheet Functions 1 September 18th 05 02:24 PM
Has anyone had problems setting the font size for a title through VBA? Viv2004 Charts and Charting in Excel 4 August 28th 05 12:23 PM
Problems with setting values in a listbox kankal Excel Programming 1 November 26th 04 09:12 AM
Problems with preventing the user of setting a checkbox of a treeview Jurry[_13_] Excel Programming 1 May 25th 04 12:00 PM


All times are GMT +1. The time now is 02:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"