Window.Caption Property (Excel)
Returns or sets a Variant value that represents the name that appears in the title bar of the document window.
When you set the name, you can use that name as the index to the Windows collection (as demonstrated in the example.)
This example sets the name of the first window in the active workbook to be "Consolidated Balance Sheet." This name is then used as the index to that window in the Windows collection.