ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to insert page number and number of page..... (https://www.excelbanter.com/excel-programming/330914-how-insert-page-number-number-page.html)

Paul

How to insert page number and number of page.....
 
I need to insert the page number and total number of pages (Page 1 of 11) at
the bottom of an Excel report just like a footer, using vba. Thanks.



Nigel

How to insert page number and number of page.....
 
ActiveSheet.PageSetup.CenterFooter = "Page: &P of &N"


--
Cheers
Nigel



"Paul" wrote in message
...
I need to insert the page number and total number of pages (Page 1 of 11)

at
the bottom of an Excel report just like a footer, using vba. Thanks.





Piranha[_8_]

How to insert page number and number of page.....
 

Hi Paul,
You can use one of these for positioning.

.LeftHeader or .CenterHeader or .RightHeader
.LeftFooter or .CenterFooter or .RightFooter

Later
Dave

Nigel Wrote:

ActiveSheet.PageSetup.CenterFooter = "Page: &P of &N"
--
Cheers
Nigel

"Paul" wrote in message
...
I need to insert the page number and total number of pages (Page 1 o

11)
at
the bottom of an Excel report just like a footer, using vba. Thanks.



--
Piranh
-----------------------------------------------------------------------
Piranha's Profile: http://www.excelforum.com/member.php...fo&userid=2043
View this thread: http://www.excelforum.com/showthread.php?threadid=37646



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

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