Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 193
Default How do I use an Excel cell in footer

I am trying to use the contents of an Ecel cell in the footer of the
document. Is this possible?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default How do I use an Excel cell in footer

Pete,

Alt+F11 to open VB editor. Double click 'This Workbook' and paste this code in

Private Sub Workbook_BeforePrint(Cancel As Boolean)
Dim WS As Worksheet
For Each WS In Worksheets
WS.PageSetup.LeftFooter = Worksheets("Sheet1").Range("A1").Value
Next WS
End Sub

Mike

"PETE" wrote:

I am trying to use the contents of an Ecel cell in the footer of the
document. Is this possible?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default How do I use an Excel cell in footer

Private Sub Workbook_BeforePrint(Cancel As Boolean)
With ActiveSheet.PageSetup
.LeftFooter = ActiveSheet.Range("A1").Value
End With
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code

--
__________________________________
HTH

Bob

"PETE" wrote in message
...
I am trying to use the contents of an Ecel cell in the footer of the
document. Is this possible?



Reply
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
How do I to refer to a (named) cell in Excel header/footer? Ton[_2_] Excel Worksheet Functions 1 December 16th 08 11:20 AM
How do I copy cell contents to footer in Excel Access novice Excel Discussion (Misc queries) 1 June 30th 08 09:59 PM
Can an Excel cell value be used in a Custom Footer? Footers and Cell references Excel Worksheet Functions 7 April 11th 07 06:00 PM
Excel footer reference to cell in workbook mlh97 Excel Discussion (Misc queries) 1 March 1st 06 04:27 PM
Excel header/footer cell reference Paddy Excel Discussion (Misc queries) 2 December 16th 05 03:31 PM


All times are GMT +1. The time now is 10:36 PM.

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

About Us

"It's about Microsoft Excel"