100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Other

AIN3701 - Assignment 2 - 2024

Rating
-
Sold
14
Pages
5
Uploaded on
14-05-2024
Written in
2023/2024

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.

Institution
Course








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Course

Document information

Uploaded on
May 14, 2024
Number of pages
5
Written in
2023/2024
Type
Other
Person
Unknown

Subjects

Content preview

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

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
glenbezuidenhout Pietersburg Hoërskool, Polokwane
Follow You need to be logged in order to follow users or courses
Sold
14
Member since
4 year
Number of followers
13
Documents
1
Last sold
7 months ago

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions