I have a COUNT function on one column in a spreadsheet.I's like to display the total in the Titlebar.How can I use VBA to modify the titlebar?
The following code adds the document path to the title bar, I believeyou could modify it to add whatever you want it to.Sub AutoOpen()'Displays the Document Path in the Title BarActiveWindow.Caption = ActiveDocument.FullNameEnd Sub
Another example:Sub Test()cap = InputBox("Enter Caption:")ActiveWindow.Caption = capEnd Sub