Skip to content

Latest commit

 

History

History
51 lines (25 loc) · 932 Bytes

97fee36a-f77c-29ab-de1d-b6069b2d74d8.md

File metadata and controls

51 lines (25 loc) · 932 Bytes

Workbook.AfterSave Event (Excel)

Occurs after the workbook is saved.

Syntax

expression . AfterSave( Success )

expression A variable that represents a Workbook object.

Parameters

Name Required/Optional Data Type Description
Success Required Boolean Returns True if the save operation was successful; otherwise False .

Return Value

Nothing

Example

The following code example displays a message box if the workbook was successfully saved.

Private Sub Workbook_AfterSave(ByVal Success As Boolean) 
If Success Then 
 MsgBox ("The workbook was successfully saved.") 
End If 
End Sub

See also

Concepts

Workbook Object

Other resources

Workbook Object Members