Dynamic Page Number @ Footer

F

fabian

I would like to create a macro that sets a user defined page number in
the footer - I want to be able to set the page number through an input
box. How can this be accomplished.

TIA,

<fabian>
 
N

NC

try:

Sub SetPageNumber()

myPage = InputBox("Enter page number")
ActiveSheet.PageSetup.RightFooter = "Page " & myPage

End Sub

Neal
 
Top