ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Adding current date and contents of a cell in the footer (https://www.excelbanter.com/excel-programming/405648-adding-current-date-contents-cell-footer.html)

Carl

Adding current date and contents of a cell in the footer
 
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.

Stefi

Adding current date and contents of a cell in the footer
 
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.


Carl

Adding current date and contents of a cell in the footer
 
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.


Stefi

Adding current date and contents of a cell in the footer
 
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.



All times are GMT +1. The time now is 10:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com