PC Review


Reply
Thread Tools Rate Thread

Display page number in footer based upon pages in the current tab

 
 
=?Utf-8?B?QmVuIEZvY2hz?=
Guest
Posts: n/a
 
      24th Sep 2007
I have a very large file which has over thirty tabs with multiple pages for
each tab and I deperately need to modify the footer to display the page
numbers in the following manner. . .

Tab 1 - Page 1.1, 1.2, 1.3, 1.4, etc.
Tab 2 - Page 2.1, 2.2, 2.3, 2.4, etc.
Tab 3 - Page 3.1, 3.2, 3.3, 3.4, etc.
.. . . etc.

However, as listed below, I am only able to use the TOTAL page numbers for
the second digit. . .

Tab 1 - Page 1.1, 1.2, 1.3, 1.4
Tab 2 - Page 2.5, 2.6, 2.7, 2.8
Tab 3 - Page 3.9, 3.10, 3.11, 3.12
.. . . etc.

This is requiring me to print every page individually which is probably
adding about two to three hours of manual work on a monthly basis, so any
help would be GREATLY appreciated.

Thanks!
Ben
 
Reply With Quote
 
 
 
 
JE McGimpsey
Guest
Posts: n/a
 
      24th Sep 2007
One way, using a macro:

To print all sheets in the workbook:

Public Sub PrintAllPages()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
With ws.PageSetup
.CenterFooter = "Page " & ws.Index & "." & "&p"
End With
ws.PrintOut
Next ws
End Sub

or, to print only those sheets that you've selected:

Public Sub PrintSelectedSheetPages()
Dim ws As Worksheet
For Each ws In ActiveWindow.SelectedSheets
With ws.PageSetup
.CenterFooter = "Page " & ws.Index & "." & "&p"
End With
ws.PrintOut
Next ws
End Sub



In article <F3A70969-F7B1-4F21-A499-(E-Mail Removed)>,
Ben Fochs <Ben (E-Mail Removed)> wrote:

> I have a very large file which has over thirty tabs with multiple pages for
> each tab and I deperately need to modify the footer to display the page
> numbers in the following manner. . .
>
> Tab 1 - Page 1.1, 1.2, 1.3, 1.4, etc.
> Tab 2 - Page 2.1, 2.2, 2.3, 2.4, etc.
> Tab 3 - Page 3.1, 3.2, 3.3, 3.4, etc.
> . . . etc.
>
> However, as listed below, I am only able to use the TOTAL page numbers for
> the second digit. . .
>
> Tab 1 - Page 1.1, 1.2, 1.3, 1.4
> Tab 2 - Page 2.5, 2.6, 2.7, 2.8
> Tab 3 - Page 3.9, 3.10, 3.11, 3.12
> . . . etc.
>
> This is requiring me to print every page individually which is probably
> adding about two to three hours of manual work on a monthly basis, so any
> help would be GREATLY appreciated.
>
> Thanks!
> Ben

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to determine number of pages linked to current page lpp Microsoft Frontpage 4 25th May 2010 09:53 PM
How to add N of pages in footer? (not page number) =?Utf-8?B?RGF2ZQ==?= Microsoft Word Document Management 1 15th Apr 2007 04:16 PM
Need page number & total pages in worksheet - not header or footer =?Utf-8?B?dm9uem90dA==?= Microsoft Excel Worksheet Functions 1 30th Mar 2007 08:34 PM
How to display current page # in any cel , not header & footer =?Utf-8?B?VHBlaWxh?= Microsoft Excel Misc 0 7th Feb 2007 09:15 PM
insert page range in footer page x of number of pages =?Utf-8?B?SGVyc2NoZWw=?= Microsoft Powerpoint 2 12th Jan 2006 02:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:45 PM.