+ Reply to Thread
Results 1 to 3 of 3

Excel 2003: VBA to control Header title based on date in cell B3.

  1. #1
    Registered User
    Join Date
    08-06-2008
    Location
    Atlanta
    Posts
    5

    Excel 2003: VBA to control Header title based on date in cell B3.

    Hello everyone.

    Is it possible to control my Header title based on the date in cell B3 (this cell will always be a date)? I want the Header title to display the Month and Year of that date in cell B3; this will be the title.

    For example: Cell B3 has 4/1/2008. I want my Header title to display "April 2008".

    Likewise: Cell B3 has 11/1/2008. I want my Header title to display "November 2008".

    Thanks in advance for any help.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    when macro run will add A1 (change to your cell)to the header, you could probably run this as before print
    Please Login or Register  to view this content.
    don't know how to change format tho'{probably a bit of code could be added ?)
    Last edited by martindwilson; 08-06-2008 at 03:51 PM.

  3. #3
    Registered User
    Join Date
    08-06-2008
    Location
    Atlanta
    Posts
    5

    Thanks

    Thank you MartindWilson!!! This did the trick. As you noticed, I'm new at dabbling in VBA in Excel, but this forums like this makes it easier.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1