PC Review


Reply
Thread Tools Rate Thread

Adding current date and contents of a cell in the footer

 
 
Carl
Guest
Posts: n/a
 
      6th Feb 2008
Is there a way to add the current date AND the contents of a certain cell in
the footer? I tried entering the following in the customized footer section
to no avail:

&[Date], [Sheets("Registration").Range("B7")]

Thanks in advance.
 
Reply With Quote
 
 
 
 
Stefi
Guest
Posts: n/a
 
      6th Feb 2008
As far as I know this can be done only via VBA:
Sub lfooter()
ActiveSheet.PageSetup.LeftFooter = "&D" &
Sheets("Registration").Range("B7")
End Sub
You can insert this custom footer also directly via VBA Immediate window.
Regards,
Stefi


„Carl” ezt *rta:

> Is there a way to add the current date AND the contents of a certain cell in
> the footer? I tried entering the following in the customized footer section
> to no avail:
>
> &[Date], [Sheets("Registration").Range("B7")]
>
> Thanks in advance.

 
Reply With Quote
 
Carl
Guest
Posts: n/a
 
      6th Feb 2008
Thanks, Stefi.
I finally remembered that I had solved this problem several months back with
the help of others in the forum. I am running the following macro when the
sheets print and it works well. Thanks again.

Sub CellInFooter()
With ActiveSheet
.PageSetup.LeftFooter = "&""Arial,Regular""&7 " & Format(Now(),
"mm/dd/yy") & ", CONFIDENTIAL " & Sheets("Registration").Range("B7").Value
End With
End Sub

"Stefi" wrote:

> As far as I know this can be done only via VBA:
> Sub lfooter()
> ActiveSheet.PageSetup.LeftFooter = "&D" &
> Sheets("Registration").Range("B7")
> End Sub
> You can insert this custom footer also directly via VBA Immediate window.
> Regards,
> Stefi
>
>
> „Carl” ezt *rta:
>
> > Is there a way to add the current date AND the contents of a certain cell in
> > the footer? I tried entering the following in the customized footer section
> > to no avail:
> >
> > &[Date], [Sheets("Registration").Range("B7")]
> >
> > Thanks in advance.

 
Reply With Quote
 
Stefi
Guest
Posts: n/a
 
      6th Feb 2008
You are welcome! Thanks for the feedback!
Stefi

„Carl” ezt *rta:

> Thanks, Stefi.
> I finally remembered that I had solved this problem several months back with
> the help of others in the forum. I am running the following macro when the
> sheets print and it works well. Thanks again.
>
> Sub CellInFooter()
> With ActiveSheet
> .PageSetup.LeftFooter = "&""Arial,Regular""&7 " & Format(Now(),
> "mm/dd/yy") & ", CONFIDENTIAL " & Sheets("Registration").Range("B7").Value
> End With
> End Sub
>
> "Stefi" wrote:
>
> > As far as I know this can be done only via VBA:
> > Sub lfooter()
> > ActiveSheet.PageSetup.LeftFooter = "&D" &
> > Sheets("Registration").Range("B7")
> > End Sub
> > You can insert this custom footer also directly via VBA Immediate window.
> > Regards,
> > Stefi
> >
> >
> > „Carl” ezt *rta:
> >
> > > Is there a way to add the current date AND the contents of a certain cell in
> > > the footer? I tried entering the following in the customized footer section
> > > to no avail:
> > >
> > > &[Date], [Sheets("Registration").Range("B7")]
> > >
> > > Thanks in advance.

 
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date in cell keeps adding the current year. Excelsior731 Microsoft Excel Misc 6 13th Apr 2009 05:51 PM
Can I lock cell contents after current date is past? =?Utf-8?B?RXhjZWwgVXNlciBHcmVn?= Microsoft Excel Worksheet Functions 0 16th Jan 2006 06:47 PM
Contents of cell in footer =?Utf-8?B?ZGJoZW5rZWw=?= Microsoft Excel Misc 6 15th Mar 2005 03:15 PM
Contents of cell in footer =?Utf-8?B?ZGJoZW5rZWw=?= Microsoft Excel Misc 0 10th Mar 2005 05:49 PM
Can contents of a cell be used in header/footer? Anon Ymous Microsoft Excel Discussion 6 15th Jun 2004 12:09 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:47 AM.