Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How to number all pages in all the worksheets continuously from 1.

I want that my workbook numbers from 1 onwards till the last page of the last
worksheet. I don't want each worksheet to start numbering from page no.1.
Please suggest a way for this.
--
M P Gupta
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,117
Default How to number all pages in all the worksheets continuously from1.

well, you could do it manually, but it's very tedious.
sheet1 cell A1 enter "1"
sheet2 cell A1 enter "=sheet1!A1+1"
sheet3 cell A1 enter "=sheet2!A1+1"

very tedious but works.
you could also write a macro to do it all at once.

Option Explicit

Sub increase_numbering()

Dim ws As Worksheet
Dim i As Integer
Dim r As Range

For Each ws In ActiveWorkbook.Worksheets
Set r = ws.Range("A1")

If ws.Name = "Sheet1" Then
r.Value = 1
i = 1
End If

If ws.Name < "Sheet1" Then
r.Value = i + 1
End If
Next ws

End Sub

hope that helps!
:) susan



On Oct 9, 7:18*am, M P Gupta
wrote:
I want that my workbook numbers from 1 onwards till the last page of the last
worksheet. I don't want each worksheet to start numbering from page no.1.
Please suggest a way for this.
--
M P Gupta


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
How do I print cells continuously on pages, no breaks? LindaV Setting up and Configuration of Excel 1 March 2nd 09 07:20 PM
Pasting PDF pages into Worksheets Jim Johnson Excel Discussion (Misc queries) 1 November 10th 06 08:50 PM
How do I continuously number pages for the entire workbook? Pattie Excel Discussion (Misc queries) 5 June 9th 06 12:23 AM
How can I number pages so it changes every 3 pages? tina Excel Discussion (Misc queries) 0 February 16th 06 12:28 AM
How do I number pages of worksheets sequentially? jthecken Excel Discussion (Misc queries) 0 July 13th 05 05:06 PM


All times are GMT +1. The time now is 07:40 AM.

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"