Tasks.ExitWindows Method

Closes all open applications, quits Microsoft Windows, and logs the current user off.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Sub ExitWindows
'Usage
Dim instance As Tasks

instance.ExitWindows()
void ExitWindows()

Remarks

This method doesn't save changes to open Microsoft Word documents; however, it does prompt you to save changes to open documents in other Windows-based applications.

See Also

Reference

Tasks Interface

Tasks Members

Microsoft.Office.Interop.Word Namespace