Using the Close Method : ActiveInspector « Application « VBA / Excel / Access / Word






Using the Close Method

 
'Closes the active inspector and saves changes to its contents:
Sub saveMode()
    ActiveInspector.Close SaveMode:=olSave
End Sub

 








Related examples in the same category

1.Working with the Active Inspector
2.Check that the TypeName function does not return Nothing when run on the ActiveInspector method of the Application object:
3.Using the SaveAs Method