+ Reply to Thread
Results 1 to 5 of 5

VBA to increment sum of payment made

  1. #1
    Forum Contributor
    Join Date
    09-02-2013
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    368

    VBA to increment sum of payment made

    Greetings everyone,

    I haven't been posting for a while here and that's because most of the coding I made since the last time I posted here was similar to the ones I requested in the past. This one however seems to be a more daunting to me although it looks like a simple exercise.

    From the attached workbook in the Sales Reporting worksheet, you will find a report of income. The trickiness of the reporting sheet is the part billing section in column K to which reporter has to enter amount paid every month when new payment is made. What I would like to achieve is to increment all payments for all part billing automatically without the reporter doing the calculation manually of the total payments to date in column R.

    The issue is that the reporter has to amend the same row to provide the new payment amount once this has become official. So, as an example, in row 10 let's say on 27/09/2019, a payment of £2000 was made which effectively increments the total amount paid to £3000 and make the outstanding amount to £9000 in cell S10.

    What would be the best way to record, that change so the reporter won't have to enter and calculate the total amount manually? Perhaps put it in the column Q.

    The coding will probably be the rendition of the following if VBA is to be used:

    - Create a module for a Before Save Event
    - Check last row
    - If Date in First Payment column (M) = Date in Last Payment column (N) Then Copy Value in O (Amount Paid) and Paste in R (Paid so Far).
    - If Date in First Payment column (M) <> Date in Last Payment column (N) Then MsgBox "It's a new entry" , Sum up Values in R and O.

    Much grateful of your thoughts and input on this even if it's only an indication of what I should do.

    Much appreciated.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    09-02-2013
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    368

    Re: VBA to increment sum of payment made

    Anyone may have an idea on this one?

  3. #3
    Forum Contributor
    Join Date
    09-02-2013
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    368

    Re: VBA to increment sum of payment made

    Putting this in the front again, in case someone may be interested to have a look at it.

  4. #4
    Registered User
    Join Date
    09-30-2019
    Location
    Chicago
    MS-Off Ver
    2016
    Posts
    72

    Re: VBA to increment sum of payment made

    Hi. I'd like to help but I'm not sure I'm understanding your question correctly. Would a macro where the reporter could just type in the amount of the incremental payment and that would update the row work? Provide more clarity/examples of what you need and I'll try to help.

    Would the only columns being updated be O and S? Or are there other columns you don't want the reporter manually updating?
    Last edited by armando12345; 10-07-2019 at 09:03 PM.

  5. #5
    Forum Contributor
    Join Date
    09-02-2013
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    368

    Re: VBA to increment sum of payment made

    Hey Armando,
    Thank you for trying to help. I have posted a new thread that captures better what I would like to achieve and closing this thread down.
    https://www.excelforum.com/excel-pro...ml#post5206772
    Hope it makes more sense.

+ 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. Calculate the new NPER when a baloon payment is made
    By cristinaion in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-16-2019, 03:06 PM
  2. How do I hide a running balance until a payment is made?
    By LisaDSoCal in forum Excel General
    Replies: 10
    Last Post: 08-22-2018, 10:11 AM
  3. [SOLVED] Balance b/f to be offset if payment made
    By kenjichan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-31-2014, 11:57 AM
  4. Need formula to zero payment amount made if month changed
    By MannyLNJ in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-06-2013, 03:52 AM
  5. Calculation Of Last Payment Made
    By kanwal_deep in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-19-2007, 06:43 AM
  6. [SOLVED] formulating a balance when a loan payment is made
    By Kim2000 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-12-2005, 12:35 PM
  7. Retrieving the Most Recent Payment Made by Client
    By seljo in forum Tips and Tutorials
    Replies: 1
    Last Post: 08-25-2005, 02:35 AM

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