Question

I need some VBA(excel) help. This is what I was given: 'Review the attached data on...

I need some VBA(excel) help. This is what I was given: 'Review the attached data on the 'Data worksheet'. The data represents the Sales Tax information for the 50-city States in US. 'Create two functions that computes the following for each state: 'StateTax: ListedPrice * State Tax Rate 'Local Tax Rate: ListedPrice * Local Tax rate 'Determine Sales Amount as: ListedPrice + StateTax + LocalTax 'TotalTax as StateTax + LocalTax 'DiscountOpportunity as: MINIMUM(ListPrice * 2%, SalesTax * 1.5%) These are the two subs I was given to work off of: Sub Part-A() Open textfile userCarDealership.txt Read the first 25 records, and then display those 25 records as Tab-delimited rows/lines in ONE Messagebox. End Sub Sub Part-B() Open textfile userCarDealership.txt Read the first 25 records, and load the records into the spreadsheet. Note: the starting cell for the load is A2. End Sub

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Option Explicit

Private Sub TaxCal_Click()

    Dim MPrice As Currency

    Dim TaxRate As Double

    Dim TaxAmount As Currency

    Dim NetPrice As Currency

   

    MPrice = CCur(txtMPrice.Text)

    TaxRate = txtTaxRate.Text / 100

    TaxAmount = MPrice * TaxRate

    NetPrice = MPrice + TaxAmount

   

    txtMPrice.Text = FormatCurrency(MPrice)

    txtTaxAmount.Text = FormatCurrency(TaxAmount)

    txtNetPrice.Text = FormatCurrency(NetPrice)

End Sub

Private Sub cmdClose_Click()

    End

End Sub

Add a comment
Know the answer?
Add Answer to:
I need some VBA(excel) help. This is what I was given: 'Review the attached data on...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Hello, I need some help with some Excel formulas. a. Open Excel_Ch11HW.xlsx and save it as...

    Hello, I need some help with some Excel formulas. a. Open Excel_Ch11HW.xlsx and save it as Excel_Ch11HW_LastNameFirstName. b. Click cell H4, the cell containing the ending date for the first loan. Enter the formula to compute the ending date, based on the starting date and the term of the loan. For the sake of simplicity, you don’t have to account for leap year. To compute the ending date, multiply the term of the loan by 365 and add that result...

  • File Home Insert Formulas Data Review View Help Open in Desktop App Tell me what you...

    File Home Insert Formulas Data Review View Help Open in Desktop App Tell me what you want to do Editing V 11 v B Av av v... Ev ak Merge v General y $ v leto 2 % 2 Ey av Øv ♡ Calibri AZ - for А 1 Use the Math Word Problem 5 steps. B C D E F G H I J K L M N 3 Carmela Cruz owns a small restaurant and collects 10% sales...

  • I need you to work this assignment out using excel. It will be a huge help to me. Thanks.

    I need you to work this assignment out using excel. It will be a huge help to me. Thanks. The ABC Project 1 3 The ABC Company currently markets its chocalate and other related products. 4While seeking expansion ideas, management of the company decided to look into the possibility of a line of the new product. 5 Entry into this business would require the purchase of an existing 50-acre land in Atalanta GA at a cost of $250,000 for the...

  • Hey I really need some help asap!!!! I have to take the node class that is...

    Hey I really need some help asap!!!! I have to take the node class that is in my ziplist file class and give it it's own file. My project has to have 4 file classes but have 3. The Node class is currently in the ziplist file. I need it to be in it's own file, but I am stuck on how to do this. I also need a uml diagram lab report explaining how I tested my code input...

  • I need help on the following 2 questions. can someone help me out? Serial Problem Business...

    I need help on the following 2 questions. can someone help me out? Serial Problem Business Solutions LO P2, P3, C2 Following are some transactions and events of Business Solutions, Feb. 26 The company paid cash to Lyn Addie for eight days' work at $130 per day. Mar. 25 The company sold merchandise with a $2,012 cost for $2,800 on credit to Wildcat Services, invoice dated March 25. Book Required: 1. Assume that Lyn Addie is an unmarried employee. Her...

  • I just need the excel formula of C27 to C66 Question 1 (40 marks) Refer to...

    I just need the excel formula of C27 to C66 Question 1 (40 marks) Refer to Table 1. Write the Excel formula for each cell marked with “?” in column C such that formula could be copied and pasted into columns D, and E using Microsoft Excel without further editing. There is no need to explicitly write the Excel formula for cells marked with “Copy & paste”. Label each formula clearly with cell reference position. In many country towns of...

  • I need Sheet 1 at bottom of page answered in Excel. Thanks! Time? 8 periods 50...

    I need Sheet 1 at bottom of page answered in Excel. Thanks! Time? 8 periods 50 weeks Mr. Milbert Marvel has the desire to open and operate a food truck. He is exploring whe pod truck. He is exploring whether such an endeavor would be Because you did so well helping Uncle Murray with his financial statements a couple o mother has referred Mr. Marvel to you. He plans to quit his job at the local Costco and years. At...

  • i need help making this program the skeleton of the code is below: //Include the following #include <iostream> #...

    i need help making this program the skeleton of the code is below: //Include the following #include <iostream> #include <string> #include <fstream> //you must include this library if you wish to do file i/o using namespace std; /********************************************************* //Following is the declaration of a order record **********************************************************/ class order_record { public: string cell_number; string item_number; double quantity; double price; int processing_plant; double tax_rate; double order_tax; double net_cost; double total_cost; }; //Prototypes for your functions: input, output, and process will go...

  • i need help forming the journal entries for the information above. Data Tools window Help Format...

    i need help forming the journal entries for the information above. Data Tools window Help Format Edit View Insert Excel file Data Formulas Review View Home Insert Page Layout f income taxes are to be computed at the rate of 25 percent of net in 8.81 Byte of Accounting, Inc. 597.750 inch and with a first of Jet Byte of A gined 2365 ha ofisc herg Courney 541.250 in cash computer with a market of 514 S o ffice een...

  • IT IS REQUIRED THAT I ENTER FORMULAS! that is what i need help with, not the...

    IT IS REQUIRED THAT I ENTER FORMULAS! that is what i need help with, not the numerical answers Jirel Miller-Nobles be-12e-Using Excel Ch09-Ch10 Start - Rea. AutoSave Off Sign in X File Home Page Layout Formulas Insert Data View Review Help Power Pivot Search Paste Calibri Σ- General Conditional Formatting 11 Insert 4 $ -% 6849 A A A Cipbe BIU BFormat as Table Delete Paste Ideas Cell Styles Format Font Clipboard Alignment Number Styles Cells Editing Ideas E15 B...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT