+ Reply to Thread
Results 1 to 2 of 2

Dynamic value based on Row for Header & Footer Print (Similar with Bank Statement), Help!

  1. #1
    Registered User
    Join Date
    11-12-2015
    Location
    Surabaya, Indonesia
    MS-Off Ver
    MS 365 (Windows 11 64-bit)
    Posts
    84

    Question Dynamic value based on Row for Header & Footer Print (Similar with Bank Statement), Help!

    Hi All,

    I want to ask is there any way or how to set up header and footer in excel, to dynamically refer to a value from its row? some kind like bank statement. please refer to the image below.
    the reason why i choose to use Header & Footer, because the content row inside is dynamic, depends on how long detail text, it will auto expand, and fits it self when print.

    From the image,
    1st page header content : will be refer to a form (not yet developed) that inputted by user
    2nd page header content : will refer to the 1st one, as well as 3rd, 4th, 5th page.

    can I still use the header & footer for this feature? If it'll be more difficult, is there any way to do it?

    Forum.JPG

    thanks a lot for the help
    Warm regards,

    Adrian
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    01-03-2016
    Location
    Conwy, Wales
    MS-Off Ver
    2016
    Posts
    974

    Re: Dynamic value based on Row for Header & Footer Print (Similar with Bank Statement), He

    The easiest way to do this is to avoid headers and footers. The footer is the problem - unlike the top where you can repeat rows, the same feature is not available at the foot of a page. Lining everything up would be a nightmare.

    One approach (via VBA) would be to dynamically build the sheet as follows:
    - use narrow margins
    - build the header and footer into each page as in your example
    - make each page the same size (in your example 8 rows of data plus header plus footer)
    - the last page would usually contain some blank rows
    - the "balance in web" could be included for all 8 rows (but, to avoid it being visible, use conditional formatting to display font with no colour if rest of row blank) - this would allow the balance brought forward and carried forward to be formula driven from the same relative cell each time
    - put in a visual check to ensure that Balance Carried Forward at bottom of statement agrees to balance in source data! Better still, prevent it printing if the balances differed

+ 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. Replies: 1
    Last Post: 06-20-2014, 02:42 PM
  2. [SOLVED] If Statement Within Header/Footer Population Macro
    By idelta in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-24-2014, 09:28 PM
  3. [SOLVED] Print title (header footer) editing
    By ranald in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-18-2012, 11:56 AM
  4. Reference a Cell in a Print Header/Footer
    By RobHam in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-13-2011, 06:06 AM
  5. Replies: 4
    Last Post: 05-26-2006, 03:00 PM
  6. [SOLVED] how to move header and footer within print margins excel
    By Rohit in forum Excel General
    Replies: 2
    Last Post: 05-04-2005, 12:06 PM
  7. [SOLVED] How do I get the same header/footer to print on each page of a wo.
    By Stephen Connolly in forum Excel General
    Replies: 2
    Last Post: 03-17-2005, 08:06 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