ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Setting up and Configuration of Excel (https://www.excelbanter.com/setting-up-configuration-excel/)
-   -   worksheet page numbers (https://www.excelbanter.com/setting-up-configuration-excel/23501-worksheet-page-numbers.html)

Anne S

worksheet page numbers
 
Is there an easy way to put page numbers on worksheets? The MS instructions
did not work.

Thanks
Anne

Gord Dibben

Anne

Page numbers where?

Headers and Footoers when printing allow page numbers.

Which MS instructions?

More detail what you have tried and on "did not work" please.


Gord Dibben Excel MVP

On Mon, 25 Apr 2005 07:02:07 -0700, Anne S <Anne
wrote:

Is there an easy way to put page numbers on worksheets? The MS instructions
did not work.

Thanks
Anne



zackb

If you are referring to a worksheets Index in the workbook, you can make use
of this UDF ...

Function SheetNum(Optional celRef As Range) As Long
With Application.Caller.Parent
If celRef Is Nothing Then
SheetNum = .Index
Else
SheetNum = celRef.Parent.Index
End If
End With
End Function

Enter as ...

=SheetNum()
or
=SheetNum(A1)
or
=SheetNum(Sheet2!A1)

--
Regards,
Zack Barresse, aka firefytr


"Anne S" <Anne wrote in message
...
Is there an easy way to put page numbers on worksheets? The MS
instructions
did not work.

Thanks
Anne





All times are GMT +1. The time now is 06:35 PM.

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