ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Page number within a worksheet (https://www.excelbanter.com/excel-programming/413756-page-number-within-worksheet.html)

Anupam Soral

Page number within a worksheet
 
How can thru programming we can get page number within an excel worksheet
--
Anupam

JR Form[_2_]

Page number within a worksheet
 
Here is the code to do it

With ActiveSheet.PageSetup
.CenterFooter = "Page &P"
End With

I assume you know to put the code in a module.
"Anupam Soral" wrote:

How can thru programming we can get page number within an excel worksheet
--
Anupam



All times are GMT +1. The time now is 05:04 AM.

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