Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

update excel title bar

Status
Not open for further replies.

christhedonstar

Programmer
Apr 9, 2007
215
GB
Hi,

How do you update the excel title bar text using VBA?

Thanks,

Chris
 
Application.caption ' replace 'Excel',
Workbooks(NameOrIndex).Windows(1).Caption ' replace workbook's name displayed.


combo
 
Not sure what you meant so tried this:

Application.Caption = "The stuff I want to put for a certain workbook"

Problem is when I hit ctrl tab and it goes to another workbook (not produced by me) the caption stays. Is the only way to get around this to trap some event to set application.caption = ""
??

Or have I misread/understood your suggestion?

Cheers,

Chris
 
For maximized workbook the title bar combines application title ('Excel', independent from opened workbook) and workbook's window title (with workbook's name by default). The captions can be separated when you set workbook's window to normal.
To make application title workbook sensitive, you can use Workbook_WindowActivate/Workbook_WindowDeactivate events.

combo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top