ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Setting up and Configuration of Excel (https://www.excelbanter.com/setting-up-configuration-excel/)
-   -   change the displayed title so 'microsoft exel' is not in it (https://www.excelbanter.com/setting-up-configuration-excel/264968-change-displayed-title-so-microsoft-exel-not.html)

dmvj

change the displayed title so 'microsoft exel' is not in it
 
How can i reduce that title displayed on the task bar and the window border
so that it doesnt say 'microsoft excel (spreadsheet name)' but instead just
says 'spreadsheet name'. I know its an excel document, i can tell from the
green x. I would much rather be able to see the title especially when i have
many open at once.

Bob Phillips[_4_]

change the displayed title so 'microsoft exel' is not in it
 
Try this

Public WithEvents App As Application

Private Sub Workbook_Open()
Set App = Application
End Sub


Private Sub App_WindowActivate(ByVal Wb As Workbook, ByVal Wn As Window)
If Wb.Path < "" Then App.Caption = Wb.Path
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code


--

HTH

Bob

"dmvj" wrote in message
...
How can i reduce that title displayed on the task bar and the window
border
so that it doesnt say 'microsoft excel (spreadsheet name)' but instead
just
says 'spreadsheet name'. I know its an excel document, i can tell from
the
green x. I would much rather be able to see the title especially when i
have
many open at once.




Parag Satpute

Try this with Workbook_Open
 

Public WithEvents App As Application

Private Sub Workbook_Open()
Dim FileN As String
Set App = Application
If App.Caption < "" Then
App.Caption = " "
End If
End Sub

With the above code you should be able to get only the File Name on the title bar....



dmvj wrote:

change the displayed title so 'microsoft exel' is not in it
01-Jun-10

How can i reduce that title displayed on the task bar and the window border
so that it doesnt say 'microsoft excel (spreadsheet name)' but instead just
says 'spreadsheet name'. I know its an excel document, i can tell from the
green x. I would much rather be able to see the title especially when i have
many open at once.

Previous Posts In This Thread:


Submitted via EggHeadCafe - Software Developer Portal of Choice
WPF Report Engine, Part 4
http://www.eggheadcafe.com/tutorials...ne-part-4.aspx


All times are GMT +1. The time now is 10:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com