Object Model Reference : Classes : S : StructSaveAsOptions : Properties : StructSaveAsOptions.Overwrite |
Property Overwrite As Boolean
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.
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 |
Copyright 2013 Corel Corporation. All rights reserved.