Previous Document Next Document

Object Model Reference : Classes : S : StructSaveAsOptions : Properties : StructSaveAsOptions.Overwrite


StructSaveAsOptions.Overwrite

Property Overwrite As Boolean

Description

Member of StructSaveAsOptions

The Overwrite property returns or specifies wheter to overwrite an existing file having the specified name. The default value of this property is True. If the file with the given name already exists and this property is set to False, the save operation fails.

VBA example

If the file file.cdr already exists in the folder C:\Temp, the following code example fails while saving the active document.

Sub Test()
 Dim so As New StructSaveAsOptions
 so.Overwrite = False
 ActiveDocument.SaveAs "C:\Temp\File.cdr", so
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.