Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Shooter
 
Posts: n/a
Default printing sheet names

My workbook has 50 worksheets. I would like to set up the footer to display
the sheet name when printed. The 50 worksheets are now in use without this
feature. I have no problem setting this up in "custom footer" for each
individual worksheet. Is it possible to select all worksheets and set this up
once for the entire workbook or do I have to do this one at a time for each
worksheet? Thanks in advance.
--
Shooter
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

you'd need to use a macro. One way:

Public Sub SheetNameInFooter()
Dim wsSheet As Worksheet
For Each wsSheet In Worksheets
With wsSheet
.PageSetup.LeftFooter = .Name
End With
Next wsSheet
End Sub

Substitute .CenterFooter or .RightFooter as desired.

If you're unfamiliar with macros, see David McRitchie's "Getting Started
with Macros":

http://www.mvps.org/dmcritchie/excel/getstarted.htm



In article ,
"Shooter" wrote:

My workbook has 50 worksheets. I would like to set up the footer to display
the sheet name when printed. The 50 worksheets are now in use without this
feature. I have no problem setting this up in "custom footer" for each
individual worksheet. Is it possible to select all worksheets and set this up
once for the entire workbook or do I have to do this one at a time for each
worksheet? Thanks in advance.

  #3   Report Post  
Peter Ellis
 
Posts: n/a
Default

Point to one of the sheet tabs, right click, choose the option select all
sheets from the context menu.

You can alternatively (if you only want a few worksheets selected) click on
one worksheet to select it, then CTRL +Click on another worksheet to select a
second, or Shift+Click on a secoond to select both worksheets along with all
in between them.



"Shooter" wrote:

My workbook has 50 worksheets. I would like to set up the footer to display
the sheet name when printed. The 50 worksheets are now in use without this
feature. I have no problem setting this up in "custom footer" for each
individual worksheet. Is it possible to select all worksheets and set this up
once for the entire workbook or do I have to do this one at a time for each
worksheet? Thanks in advance.
--
Shooter

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
Rules for Sheet names sparky Excel Discussion (Misc queries) 4 January 12th 05 06:27 AM
Printing separate sheets on one paper sheet Attyla Excel Discussion (Misc queries) 2 December 19th 04 05:58 PM
How can I show sheet names in different colours dabblerdave New Users to Excel 2 December 2nd 04 03:49 PM
Listing of Sheet names Will Fleenor Excel Worksheet Functions 1 November 17th 04 05:19 PM
Naming & renaming a sheet tab Cgbilliar Excel Worksheet Functions 1 November 7th 04 05:57 PM


All times are GMT +1. The time now is 11:02 PM.

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

About Us

"It's about Microsoft Excel"