Yeah, that's my preference. But it's not worth creating a Workbook_Open
macro just for this unless I want to apply it to all Excel files that I
open. Not sure if I do.
However....
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.Caption = ""
End Sub
Why bother? Just good practice to restore the default, for example if I
only want to apply this to one workbook, but not others open subsequently in
the same Excel instance? Just to show me how, in case I wanted to? (Good
idea.) Or is this an Excel requirement?(!)
Put the following code in the ThisWorkbook module of your Personal.xls
workbook (or any other workbook that is normally always open).
Private WithEvents App As Excel.Application
Private Sub App_WindowActivate(ByVal Wb As Workbook, _
ByVal Wn As Window)
Wn.Caption = Wb.FullName
End Sub
Private Sub Workbook_Open()
Set App = Application
End Sub
Cordially,
Chip Pearson
Microsoft Most Valuable Professional,
Excel, 1998 - 2010
Pearson Software Consulting, LLC www.cpearson.com
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.