CodeName Property Example

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

Msgbox ActiveDocument.CodeName

Send feedback to MSDN.Look here for MSDN Online resources.