Caption Property
Applies To
Window object.
Description
Returns a String containing the title of the active window. Read-only.
Remarks
The title of the active window is the text displayed in the window's title bar.
See Also
SetFocus method.
Example
The following example uses the Caption property to display the caption of the active window.
Debug.Print Application.VBE.ActiveWindow.Caption