Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,388
Default Change the name of the title bar to the name of the worksheet.

I am building a spread sheet for my network printers. I have created several
(approx 20) worksheets to represent each location that we have network
printers.
The spread sheet launches fine.. I can click each work sheet at the bottom
of the screen and the data shows up like i want it to,,, however,,, the top
title bar of each work sheet contains the file name ie..xxxxxxxx.xls.
My goal/desire is to have the name of the work sheet appear in the title
bar...
for instance,,, for instance... Currently, if I click on the 123 Main Steet
work sheet
the 123 Main Street work sheet appears,, but the title bar still shows the
sread sheet file name.. when I click on the 123 Main Street work sheet,, I
would like it to appear where the filename appears on the title bar for that
work sheet.
Is this something simple or am i going to have to get deep into the scripting?
thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Change the name of the title bar to the name of the worksheet.

Try putting this in the ThisWorkbook module. It should get you part of the
way.

Option Explicit

Private Sub Workbook_SheetActivate(ByVal Sh As Object)
Application.Caption = ActiveSheet.Name

End Sub

--
HTH,
Barb Reinhardt

If this post was helpful to you, please click YES below.



"dave" wrote:

I am building a spread sheet for my network printers. I have created several
(approx 20) worksheets to represent each location that we have network
printers.
The spread sheet launches fine.. I can click each work sheet at the bottom
of the screen and the data shows up like i want it to,,, however,,, the top
title bar of each work sheet contains the file name ie..xxxxxxxx.xls.
My goal/desire is to have the name of the work sheet appear in the title
bar...
for instance,,, for instance... Currently, if I click on the 123 Main Steet
work sheet
the 123 Main Street work sheet appears,, but the title bar still shows the
sread sheet file name.. when I click on the 123 Main Street work sheet,, I
would like it to appear where the filename appears on the title bar for that
work sheet.
Is this something simple or am i going to have to get deep into the scripting?
thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Change the name of the title bar to the name of the worksheet.

Correction.


Option Explicit


Private Sub Workbook_SheetActivate(ByVal Sh As Object)
Application.Caption = Sh.Name

End Sub

--
HTH,
Barb Reinhardt

If this post was helpful to you, please click YES below.



"dave" wrote:

I am building a spread sheet for my network printers. I have created several
(approx 20) worksheets to represent each location that we have network
printers.
The spread sheet launches fine.. I can click each work sheet at the bottom
of the screen and the data shows up like i want it to,,, however,,, the top
title bar of each work sheet contains the file name ie..xxxxxxxx.xls.
My goal/desire is to have the name of the work sheet appear in the title
bar...
for instance,,, for instance... Currently, if I click on the 123 Main Steet
work sheet
the 123 Main Street work sheet appears,, but the title bar still shows the
sread sheet file name.. when I click on the 123 Main Street work sheet,, I
would like it to appear where the filename appears on the title bar for that
work sheet.
Is this something simple or am i going to have to get deep into the scripting?
thanks

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Title of Spreadsheet Stockwell43 Excel Discussion (Misc queries) 14 December 20th 07 03:11 PM
Link title of worksheet to whatever the worksheet tab is named Par3 Excel Discussion (Misc queries) 1 March 13th 06 08:09 PM
Change Title Bar praptisahni Excel Discussion (Misc queries) 1 February 28th 06 03:22 PM
Use "PROPER" to change UPPERCASE text to Title Case on worksheet cmurdock Excel Worksheet Functions 1 January 31st 06 11:19 PM
How can I change the orientation of a worksheet title to vertical. Robert N. Excel Discussion (Misc queries) 2 August 22nd 05 06:36 PM


All times are GMT +1. The time now is 05:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"