Results 1 to 11 of 11

[VBA] Macro to apply discount to Order Form

Threaded View

  1. #1
    Registered User
    Join Date
    09-29-2021
    Location
    Copenhagen,Denmark
    MS-Off Ver
    Office 365
    Posts
    9

    Post [VBA] Macro to apply discount to Order Form

    !UPDATE!

    I have a sample order form with products, quantity, prices & discounts in the attached file.

    I need help in creating a macro such that, when a discount value is entered in C18 and the button is clicked:

    1. the values in column F will be deleted
    2. the discount percentage in C18 will be applied to the value in C16
    3. this discounted amount will be spread over the totals of Product Offering C to A in column I

    4. meaning that if the value in C16 is 10,000 and 50% is entered in C18, and the total of Product Offering C - A are 2000, 3000 and 5,000 respectively (the sum is then the value in C16 =10,000).
    5. the discount value will be 5,000
    6. 2000 of the discounted value (5,000) will be applied to first to Product Offering C. (meaning the sum of Product Offering C will 100% discount)
    7. the remaining 3000 of the discount value will then be applied to Product Offering B. (again, meaning a 100% discount it)
    8. it should always follow this order: Product Offering C --> Product Offering B ---Product Offering A


    I hope the explanation of the problem is quite clear.

    I would appreciate any help with this. Thank you.
    Attached Files Attached Files
    Last edited by Kebad; 10-13-2021 at 04:11 AM. Reason: Update to the problem

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Applying discount to Order Form with VBA
    By Kebad in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-12-2021, 10:30 AM
  2. [SOLVED] Function to automatically discount 10% over an order of £100
    By lanax in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-13-2015, 06:44 PM
  3. Applying discount on order quantity
    By garethm11 in forum Excel General
    Replies: 1
    Last Post: 02-11-2015, 08:59 AM
  4. [SOLVED] Order Form to Summarise Order on another sheet with a Submit Order Button
    By KazzICC in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-01-2014, 03:25 AM
  5. Applying a discount to a 5th Day using IF formula
    By ChrisHallas in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-20-2010, 02:57 AM
  6. show percentage of order total as a discount
    By DHEKOD in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-26-2009, 01:01 PM
  7. Applying a discount to a column of prices!
    By JK in forum Excel General
    Replies: 2
    Last Post: 01-04-2006, 09:30 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