Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have a macro with the following patch of code (except for the stuff in the bracket). However, I want the code to insert page x of y into the right footer. I figure it will go where the bracket is, but I am not certain how to program this. Your help is much appreciated. If Range("c_pageswitch") = True Then Worksheets(ws_name).PageSetup.RightFooter = [x of y] Else Worksheets(ws_name).PageSetup.RightFooter = "" End If |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Worksheets(ws_name).PageSetup.RightFooter = "&P of &N"
HTH -- AP "Henrik" a écrit dans le message de news: ... Hi, I have a macro with the following patch of code (except for the stuff in the bracket). However, I want the code to insert page x of y into the right footer. I figure it will go where the bracket is, but I am not certain how to program this. Your help is much appreciated. If Range("c_pageswitch") = True Then Worksheets(ws_name).PageSetup.RightFooter = [x of y] Else Worksheets(ws_name).PageSetup.RightFooter = "" End If |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Saving Excel 2010 files as web page or single file web page | Excel Discussion (Misc queries) | |||
Format page number in excel footer to start at a specific page # | Excel Discussion (Misc queries) | |||
How do I do page breaks when view menu doesnt page break preview | Excel Discussion (Misc queries) | |||
change and/or remove page number watermark in page break preview | Excel Discussion (Misc queries) | |||
excel fit to 1 page shows 1 page but not all data is on that page | Excel Programming |