NoSaveOnClose Property

Specifies whether a user will be prompted to save a picture when closing it. This property is especially useful when you are generating objects in a picture from the VBA scripts on-the-fly, and do not want to be prompted to save the picture when closing.

Using this property allows you to close a picture without saving it, and without a prompt to save it.

Syntax

object.NoSaveOnClose [= Boolean]

Properties

The NoSaveOnClose property syntax has these parts:

Part

Description

object

An object expression that evaluates to an object in the Applies To list.

Boolean

True - Indicates that the user will not be prompted to save the picture when it is closed.

False
- Indicates that the user will be prompted to save the picture when it is closed.

Remarks

The following example shows how to set the NoSaveOnClose property:

Private Sub CFixPicture_Initialize()

Dim objFileLink As Object

Set objFileLink = Me.Parent

objFileLink.NoSaveOnClose = True

Set objFileLink = Nothing

End sub

 

Applies To