Dynamic Page Number @ Footer

  • Thread starter Thread starter fabian
  • Start date Start date
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>
 
try:

Sub SetPageNumber()

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

End Sub

Neal
 
Back
Top