100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
AIN3701 - Assignment 2 - 2024 $3.13
Add to cart

Other

AIN3701 - Assignment 2 - 2024

 244 views  13 purchases
  • Course
  • Institution

Step-by-step guidance to insert the button, provide the VBA code and enable the Macro. This is the complete assignment, you only need to reperform in the Excel provided by the lecturer.

Preview 1 out of 5  pages

  • May 14, 2024
  • 5
  • 2023/2024
  • Other
  • Unknown
avatar-seller
Taxable income (R) Taxable income (R) Base %
Between
1 – 237 100 1 237 100 - 18%
237 101 – 370 500 237 101 370 500 40 680 26%
370 501 – 512 800 370 501 512 800 73 726 31%
512 801– 673 000 512 801 673 000 115 762 36%
673 001 – 857 900 673 001 857 900 170 734 39%
857 901 – 1 817 000 857 901 1 817 000 239 452 41%
1 817 001 and above 1 817 001 Above 614 192 45%

Age Rebate
Primary rebate All 17 235
Secondary rebate 65 9 444
Tertiary rebate 75 3 145




To create a button that requests the employee's salary and age, and then calculates the tax payable
based on the provided tax tables, you can follow these steps:

1. Open the Excel file containing the tax tables.
2. Go to the "Taxtables" worksheet.
3. Click on the "Developer" tab in the Excel ribbon. If you don't see the "Developer" tab, you may
need to enable it in Excel options.
4. Click on "Insert" in the "Controls" group, and then click on "Button (Form Control)".
5. Draw the button on the worksheet where you want it to appear.
6. Right-click on the button and choose "Edit Text" to give it a meaningful label like "Calculate Tax".
7. Right-click on the button again and select "Assign Macro".
8. Click on "New" to create a new macro.
9. In the Visual Basic for Applications (VBA) editor window that opens, paste the following code:

Sub CalculateTax()
Dim salary As Double
Dim age As Integer
Dim tax As Double
Dim primaryRebate As Double
Dim secondaryRebate As Double
Dim tertiaryRebate As Double

' Get salary and age from user
salary = InputBox("Enter the employee's salary:", "Salary Input")
age = InputBox("Enter the employee's age:", "Age Input")

' Calculate tax
If salary < 512801 Then
tax = 0

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller glenbezuidenhout. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $3.13. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

56326 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$3.13  13x  sold
  • (0)
Add to cart
Added