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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top