Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default How to add a forumla calculation to a footer

Happy New Year
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"pokdbz" wrote in message
...
I had the code on a worksheet not the workbook. Thanks for the help.

"Bernard Liengme" wrote:

This works just fine for me so I wonder if you have placed the code in
the
correct place.
This is a workBOOK sub so right click the Excel icon (next to File) on
the
Excel menu bar (not the VB editor) and select View Code. This is where
the
code should be
OR In VBEdtior click ThisWorkbook for the current workbook in the Project
window
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"pokdbz" wrote in message
...
I have the following code. I need it to add the result of the formula
to
the
footer is there a different way I can do this because what I'm doing
now
doesn't show up in the footer.

Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.PageSetup.LeftFooter = Date & " - " & Round((Date -
34448)
/
7, 0) + 1
End Sub






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
Most Used Name Forumla Myrm Excel Worksheet Functions 3 March 6th 07 06:16 PM
How can I use a calculation in a footer? (eg (=10+1)!!) John Mc Twang Excel Discussion (Misc queries) 2 July 28th 06 12:11 PM
Forumla tuzdevil Excel Discussion (Misc queries) 2 June 1st 06 10:44 AM
IF Forumla help Bryan Excel Discussion (Misc queries) 3 February 28th 06 11:17 AM
Forumla calculation Shelly Excel Discussion (Misc queries) 2 March 31st 05 12:57 AM


All times are GMT +1. The time now is 03:11 AM.

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"