CodeName Property Example

This example returns the name of the code window for the active document.

Msgbox ActiveDocument.CodeName