Consulting

Results 1 to 2 of 2

Thread: a formula in footer

  1. #1
    VBAX Mentor
    Joined
    Jun 2005
    Posts
    374
    Location

    a formula in footer

    hello
    i wanted to present a value of two cell in a footer .namely subtract one from the other and present it in a footer
    [VBA]
    Private Sub Workbook_BeforePrint(Cancel As Boolean)
    ActiveSheet.PageSetup.CenterFooter = Format((Range("A36").Value - Range("D34")), "#,##0")
    End Sub

    [/VBA]
    thanks
    moshe

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    So what is wrong with what you have?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •