Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How can I use a calculation in a footer? (eg (=10+1)!!)

I need to use a calculation in a footer as an "additonal" page reference (the
sheet forms part of another document). I cannot reset the page number as I
need to use standard numbering in the document too. In full I need the
following in a footer:

Page x of y (standard option)
Page (x+10) of (y+10) of document H1234

Hope this makes sense!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 247
Default How can I use a calculation in a footer? (eg (=10+1)!!)

a macro could do that.You would have to do the calculation eithr on the shet
or within the macro then paste it into the text part of the footer.I dont
know the code but if you record a macro whie you edit the footer you will get
an idea
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 28/07/2006 by ............
'
With ActiveSheet.PageSetup
.PrintTitleRows = ""
.PrintTitleColumns = ""
End With
ActiveSheet.PageSetup.PrintArea = ""
With ActiveSheet.PageSetup
.LeftHeader = ""
.CenterHeader = ""
.RightHeader = ""
.LeftFooter = ""
.CenterFooter = "a custom footer" & Chr(10) & "&P&N&Z&F&F"
.RightFooter = ""
End With
end Sub
the idea of pasting a worksheet formula result didnt work,but maybe a vba
variable might
Hope this is of some help

--
paul

remove nospam for email addy!



"John Mc Twang" wrote:

I need to use a calculation in a footer as an "additonal" page reference (the
sheet forms part of another document). I cannot reset the page number as I
need to use standard numbering in the document too. In full I need the
following in a footer:

Page x of y (standard option)
Page (x+10) of (y+10) of document H1234

Hope this makes sense!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 247
Default How can I use a calculation in a footer? (eg (=10+1)!!)

this worked
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 28/07/2006 by Shepherd
'

myfooter = 8
With ActiveSheet.PageSetup
.PrintTitleRows = ""
.PrintTitleColumns = ""
End With
ActiveSheet.PageSetup.PrintArea = ""
With ActiveSheet.PageSetup
.LeftHeader = ""
.CenterHeader = ""
.RightHeader = ""
.LeftFooter = ""
.CenterFooter = myfooter
.RightFooter = ""

End With

End Sub
ie the footer was 8
--
paul

remove nospam for email addy!



"John Mc Twang" wrote:

I need to use a calculation in a footer as an "additonal" page reference (the
sheet forms part of another document). I cannot reset the page number as I
need to use standard numbering in the document too. In full I need the
following in a footer:

Page x of y (standard option)
Page (x+10) of (y+10) of document H1234

Hope this makes sense!

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
Open CSV causes calculation in manual calc mode [email protected] Excel Discussion (Misc queries) 0 July 25th 06 09:22 PM
Custom Footer for each page NAVEEN Excel Worksheet Functions 0 February 21st 06 11:04 AM
Calculation Setting in Excel Stuart Bisset Excel Discussion (Misc queries) 0 June 17th 05 09:54 AM
How do I use a rounded calculation result in another calculation? vnsrod2000 Excel Worksheet Functions 1 January 26th 05 10:11 PM
How do I use a rounded calculation result in another calculation? vnsrod2000 Excel Worksheet Functions 1 January 26th 05 09:36 PM


All times are GMT +1. The time now is 01:11 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"