BackupFiles Property

BackupFiles returns or sets the global file backup state. Returns a Boolean. If the value is 'True', a backup copy of an existing file is created before saving the document. The backup copy is saved with a .BAK extension. If an identically named backup file already exists, it will be overwritten. If the value is 'False', no backup is created.

Syntax

object.BackupFiles

object. BackupFiles = Backup

Parameter

Type

Description

Backup

Boolean

required

Example 1

This script displays all the properties in the Application object.

Example 2

This example demonstrates how to return whether or not backup files are created before saving.

Debug .Print SurferApp.BackupFiles

Example 3

This example demonstrates how to allow previously saved versions of the same file name to be saved with a .BAK extension.

SurferApp.BackupFiles = True

Used by: Application object