LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Visual Basic Question

I have several worksheets that I need to inset the page
number into the center footer. I would use the &page
number but my page numbers are in the format of "1-1, 1-2,
1-3, etc." Excel does not allow this so I am trying to
write a macro that asks me the page number and inserts it
into the center footer position. I have that part of the
macro written but I cannot format the font, size and
boldness of the page number. Can anyone give me a hand.
Here is the macro I have currently tried and I want it to
appear Arial Font size 4, and Bolded.


Sub PageNumber()
ActiveSheet.PageSetup.CenterFooter = InputBox("Enter
page Number")

End Sub

Any ideas or suggestions would be greatly appreciated.
Thanks in adance.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual basic 6.5 question using combo box and call procedure. TAS Excel Discussion (Misc queries) 7 April 15th 09 06:46 PM
Visual Basic Question ALEX Excel Worksheet Functions 3 February 6th 07 11:46 AM
visual basic coding question stevie888 Excel Discussion (Misc queries) 0 November 26th 06 10:24 PM
Visual Basic Question Peter W Soady \(UK\) Excel Discussion (Misc queries) 1 October 25th 06 06:26 PM
changing the visual basic in office 2003 to visual studio net bigdaddy3 Excel Discussion (Misc queries) 1 September 13th 05 10:57 AM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"