Net Pay Problem

You have been asked to write a function  named NetPay to

1) input two values, gross pay and deductions assign them as arguments

2) determine the net pay (gross pay – deductions)

3) pass the net pay back as the result through the function name

 

Create a flowchart and VBA code to solve this problem. Create a command button on the spreadsheet named cmdNetPay Place the code under the Click event of a command button titled “Net Pay”.

Flowchart Solution

Sample Screen Shots

VBA Solution Code