Results 1 to 3 of 3

Thread: Macro for Contra entry

  1. #1
    Junior Member
    Join Date
    Aug 2012
    Posts
    12
    Rep Power
    0

    Macro for Contra entry

    Hi,

    I need a macro which highlights the Debit and credit amounts for a vendor.
    For example. I have two columns with vendor and Amount.Suppose Vendor A contains 5 or more rows which may contain debit and credit which is summing to Zero.

    Please find the attachment where I have highlighted with yellow colour which needs to be highlighted using macro.

    Regards,
    Ravi
    Attached Files Attached Files

  2. #2
    Forum Guru Rick Rothstein's Avatar
    Join Date
    Feb 2012
    Posts
    659
    Rep Power
    13
    Quote Originally Posted by ravichandavar View Post
    Hi,

    I need a macro which highlights the Debit and credit amounts for a vendor.
    For example. I have two columns with vendor and Amount.Suppose Vendor A contains 5 or more rows which may contain debit and credit which is summing to Zero.
    I don't think there can be an answer to your question. Consider this data...
    A B
    1 Remain
    amount
    Supplier
    2 25 A
    3 75 A
    4 50 A
    5 50 A
    6 25 A
    7 -125 A

    Anyone of the following would meet your conditions; how would we know which one is correct?
    D E F G H I J K
    1 Remain
    amount
    Supplier Remain
    amount
    Supplier Remain
    amount
    Supplier
    2 25 A 25 A 25 A
    3 75 A 75 A 75 A
    4 50 A 50 A 50 A
    5 50 A 50 A 50 A
    6 25 A 25 A 25 A
    7 -125 A -125 A -125 A

    Is there anything tying the amounts together (like an Invoice Number or something)?

  3. #3
    Junior Member
    Join Date
    Aug 2012
    Posts
    12
    Rep Power
    0
    Quote Originally Posted by Rick Rothstein View Post
    I don't think there can be an answer to your question. Consider this data...
    A B
    1 Remain
    amount
    Supplier
    2 25 A
    3 75 A
    4 50 A
    5 50 A
    6 25 A
    7 -125 A

    Anyone of the following would meet your conditions; how would we know which one is correct?
    D E F G H I J K
    1 Remain
    amount
    Supplier Remain
    amount
    Supplier Remain
    amount
    Supplier
    2 25 A 25 A 25 A
    3 75 A 75 A 75 A
    4 50 A 50 A 50 A
    5 50 A 50 A 50 A
    6 25 A 25 A 25 A
    7 -125 A -125 A -125 A

    Is there anything tying the amounts together (like an Invoice Number or something)?
    HI,

    First of all its OK for me if it picks any line which adds to zero.Secondly Yes there is Invoice and doc no but its useless, but there is one thing we can take document date. We can knock off with the Document dates which falls firs...

    Thanks,
    Ravi.C

Similar Threads

  1. Replies: 8
    Last Post: 05-21-2013, 06:34 AM
  2. Delete Double Entry From Access DBF Table
    By MASIF in forum Access Help
    Replies: 1
    Last Post: 03-07-2013, 11:40 AM
  3. Replies: 14
    Last Post: 01-26-2013, 04:58 AM
  4. Find The Last Entry Row In A Column That Contains Only Numbers
    By Excel Fox in forum Excel and VBA Tips and Tricks
    Replies: 0
    Last Post: 05-09-2011, 05:19 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
  •