PC Review Forums Newsgroups Microsoft Excel Microsoft Excel Setup header/footer

Reply

header/footer

 
Thread Tools Rate Thread
Old 01-06-2007, 07:07 PM   #1
=?Utf-8?B?VGFsbGFkZWdh?=
Guest
 
Posts: n/a
Default header/footer


I have around 30 worksheets. The header on each of the worksheet has its own
separate title. I only want to change the third row to the current month.
Is there a way to do this by group selecting to only change the date and
leaving the other two rows the same? Here's an example.

Indy 500 Indy 500
Racing Racing
04/30/07 05/31/07

Ironman Ironman
Decathlon Decathlon
04/30/07 05/31/07


  Reply With Quote
Old 01-06-2007, 07:44 PM   #2
Dave Peterson
Guest
 
Posts: n/a
Default Re: header/footer

As long as there's nothing else in that cell, you could try this:

Rightclick on any worksheet tab
choose Select all sheets
Select A3 (or whatever cell contains that date)
type the date and hit enter
rightclick on any of the tabs and select Ungroup Sheets.

Talladega wrote:
>
> I have around 30 worksheets. The header on each of the worksheet has its own
> separate title. I only want to change the third row to the current month.
> Is there a way to do this by group selecting to only change the date and
> leaving the other two rows the same? Here's an example.
>
> Indy 500 Indy 500
> Racing Racing
> 04/30/07 05/31/07
>
> Ironman Ironman
> Decathlon Decathlon
> 04/30/07 05/31/07


--

Dave Peterson
  Reply With Quote
Old 15-06-2007, 11:54 AM   #3
=?Utf-8?B?Sk1heQ==?=
Guest
 
Posts: n/a
Default RE: header/footer

Here's another approach...
Rename your SheetNames to:, example (1)
Indy500-Racing
In cell G1 (or Z1 somewhere) of this sheet enter: 4/30/2007
On all subsequent sheets in Cell G1 enter ='Indy500-Racing'!$G$1
So when you change only G1 of Indy500-Racing G1 all your other
sheets also change (to say 5/31/2007).

Paste this code into your Thisworkbook module:

Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.PageSetup.CenterHeader = ActiveSheet.Name & vbCrLf _
& Format(Range("G1"), "mm/dd/yy")
End Sub









"Talladega" wrote:

> I have around 30 worksheets. The header on each of the worksheet has its own
> separate title. I only want to change the third row to the current month.
> Is there a way to do this by group selecting to only change the date and
> leaving the other two rows the same? Here's an example.
>
> Indy 500 Indy 500
> Racing Racing
> 04/30/07 05/31/07
>
> Ironman Ironman
> Decathlon Decathlon
> 04/30/07 05/31/07
>
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off