Close Method

Close Method

See Also         Example         Applies To

For the Explorer object, the Close method closes the explorer. No information is saved.

For an Inspector or Outlook item object, the Close method closes the inspector or item and optionally saves changes to the displayed Outlook item.

Syntax 1

objExplorer.Close

objExplorer   Required. An expression that returns an Explorer object.

Syntax 2

object.Close(SaveMode)

object     Required. An expression that returns an Inspector or Outlook item object.

SaveMode   Required Long. The close behavior. Can be one of the following OlInspectorClose constants: olDiscard(1) (discard all changes without prompting), olPromptForSave(2) (prompt to save or discard all changes), or olSave(0) (save all changes without prompting). If the item displayed within the inspector has not been changed, this argument has no effect.