Results 1 to 4 of 4

Thread: Extract Multiple Rows into a Limited Template based on Multiple Criterias

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    Jan 2020
    Posts
    2
    Rep Power
    0

    Extract Multiple Rows into a Limited Template based on Multiple Criterias

    Dear All,

    I have a data dump that I want to extract into a template and be printed out.

    Here are my intentions:

    From the data dump (sample above), is it possible to automatically extract the appropriate value into the Template with a maximum of 10 rows for each set of Template. And then colour-code those that have been printed to the Template.
    These are the Template (Payment Voucher) limitations:

    a. Each template contains the data from only 1 (one) day

    If in 1st January 2020 & 2nd January 2020, there are 5 transactions /day, there would have to be 2 Templates (1 for each day).

    b. Each Template should only be from 1 Source

    So if in 1st January 2020 & 2nd January 2020, there are 5 transactions/day from each Source A & B, there would be 4 Templates (1 for each source/day).

    c. Each template could only contain 10 lines.

    So if in 1st January 2020 & 2nd January 2020, there are 11 transactions/day from each Source A & B, there would be 8 Templates (2 for each source/day).


    2. Values for the templates are:
    - Credit Source = Source + Source Name
    - Total = All values inside the voucher
    - Account = Item Code
    - Detail = Item Name
    - Unit Code = Unit Code
    - Value = Total Debit



    Since I am new to VBA, I would have no issue with the inputs to their appropriate places and to colour code. But I am still learning about the loop function that I believe would be required for this?

    Any help would be much appreciated!Sample.xlsmCapture.jpgFinal.jpg



    (

    Also posted here:
    http://www.vbaexpress.com/forum/show...iple-Criterias
    https://www.myonlinetraininghub.com/...iple-criterias
    https://chandoo.org/forum/threads/ex...iterias.43376/
    https://stackoverflow.com/questions/...iple-criterias
    https://www.excelforum.com/excel-pro...criterias.html
    https://superuser.com/questions/1515...iple-criterias


    Last edited by DocAElstein; 01-10-2020 at 01:24 PM.

Similar Threads

  1. Replies: 6
    Last Post: 08-14-2013, 04:25 PM
  2. Send Multiple Outlook Mails Using The Same Template
    By forums1167 in forum Excel Help
    Replies: 1
    Last Post: 07-20-2013, 03:13 PM
  3. Replies: 8
    Last Post: 06-08-2013, 01:24 PM
  4. Replies: 4
    Last Post: 05-01-2013, 09:49 PM
  5. Replies: 2
    Last Post: 06-14-2012, 04:10 AM

Posting Permissions

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