+ Reply to Thread
Results 1 to 4 of 4

VBA to insert page total (print area) in footer with cell-like formatting

  1. #1
    Registered User
    Join Date
    01-30-2017
    Location
    Auckland, New Zealand
    MS-Off Ver
    2010
    Posts
    4

    Question VBA to insert page total (print area) in footer with cell-like formatting

    Hi there,

    New to the forum, I am relatively familiar with excel but have only entry level understanding of VBA and am having trouble achieving a solution to a problem I have encountered at work. Over the weekend I attempted to develop solutions to several issues that we have with regard to a standard schedule which is used when going out to tender for a specific type of construction. The spreadsheet requires:
    1. Numbering for each line item prefixed by the section of construction its sheet is based on, skipping headings (denoted by bold text) and blanks. OK
    2. Automated section headings and project name / client name in header / top of each sheet. OK
    3. Conditional formatting which covers borders, alignment, and bold / standard text. I can do this myself.
    4. A footer which contains 3 sections which update dynamically as information is inserted / removed. This is what I need help on

    The footer specifically requires:
    1. A section containing the 'Project Number'.
    2. A section which contains information in this format: section number/page number (ex. section 2, page 7 would show "2/7")
    3. A section which contains the sum of the right most column for that page (a page total) and a description beside it which would read either 'to collection', or 'to summary' depending on whether the footer was located on the last page ('to summary') of the sheet or elsewhere ('to collection'). Ideally i would like to be able to link this number to the section summary page (ex. Total for page 7 = $21,000) and for it to dynamically update.
    4. Formatting of footer to match the excel spreadsheet attached to this post.

    I have put some effort into searching for a solution myself and the closest match was this thread on another forum (http://forum.chandoo.org/threads/how...-footer.12144/) however I could not get the VBA code to work on my version of Excel (2010).

    Thank you in advance to anyone who finds time to help me out, I appreciate that I am asking for a lot and not really offering much (*anything... ).

    Regards,

    Luke
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    1,187

    Re: VBA to insert page total (print area) in footer with cell-like formatting

    I will have a look tomorrow. Having problems with the download at the moment.


    click on the * Add Reputation if this was useful or entertaining.

  3. #3
    Registered User
    Join Date
    01-30-2017
    Location
    Auckland, New Zealand
    MS-Off Ver
    2010
    Posts
    4

    Re: VBA to insert page total (print area) in footer with cell-like formatting

    Quote Originally Posted by tony h View Post
    I will have a look tomorrow. Having problems with the download at the moment.
    Hi Tony,

    Thanks for this, I will continue to look into the issue myself when I have spare time. If you need me to reupload the file or host it somewhere else let me know.

    Cheers,

    L

  4. #4
    Registered User
    Join Date
    01-30-2017
    Location
    Auckland, New Zealand
    MS-Off Ver
    2010
    Posts
    4

    Re: VBA to insert page total (print area) in footer with cell-like formatting

    I have moved this thread to the correct area of excel forums, the new one can be found here: http://www.excelforum.com/showthread...76#post4573676

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Print cell area at the top of each page
    By OldManExcellor in forum Excel General
    Replies: 1
    Last Post: 12-04-2013, 10:05 AM
  2. Replies: 3
    Last Post: 10-24-2013, 02:28 PM
  3. Get total pages per sheet and set page numbers in page footer by formula
    By Snoopy2003 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-13-2013, 04:00 PM
  4. Insert right footer on current page into cell?
    By farzyness in forum Excel General
    Replies: 0
    Last Post: 08-25-2010, 04:46 PM
  5. How do I code a footer to print variable cell data on each printed page?
    By DeannaT in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-04-2008, 12:14 PM
  6. Replies: 1
    Last Post: 11-24-2005, 07:29 AM
  7. Print page with cell as footer reference
    By Hellboy in forum Excel General
    Replies: 3
    Last Post: 05-10-2005, 11:35 AM

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1