Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a sub (Bikes), run by the button, that generates a sentence output like the examples in J13 and J14 for each data batch input.

image text in transcribedCreate a sub ("Bikes"), run by the button, that generates a sentence output like the examples in J13 and J14 for each data batch input. Also, use VBA (not worksheet functions directly in those cells) to calculate the totals and averages in the table to the right of the data. Don't forget to handle the city misspellings (without manually changing the city names in the worksheet) in your VBA code. Assume that at least the left three characters are spelled correctly. Also assume there may be more city misspellings elsewhere in the data. Assume additional data blocks might be added or removed at the bottom, and assume there may be more than one blank row between blocks of data (there won't be less than one blank though). Make sure the summary sentences are formatted as shown in the examples (including a period and dollar sign), and appear one after another, rather than next to the block of data. Examples of how the first two summary sentences should be are shown to the right of where your output should be. Make sure your outputs are placed in the appropriate highlighted cells. Comment your code so that a grader can follow it. Points will be deducted if it is poorly commented.

I need the VBA code for this.

Create a sub ("Bikes'), run by the button, that generates a sentence output like the examples in J13 and J14 for each data batch input. Also, use VBA (not worksheet functions directly in those cells) to calculate the totals and averages in the table to the right of the data. Don't forget to handle the city misspellings (without manually changing the city names in the worksheet) in your VBA code. Assume that at least the left three characters are spelled correctly. Also assume there may be more city misspellings elsewhere in the data. Assume additional data blocks might be added or removed at the bottom, and assume there may be more than one blank row between blocks of data (there won't be less than one blank though). Make sure the summary sentences are formatted as shown in the examples (including a period and dollar sign), and appear one after another, rather than next to the block of data. Examples of how the first two summary sentences should be are shown to the right of where your output should be. Make sure your outputs are placed in the appropriate highlighted cells. Comment your code so that a grader can follow it. Points will be deducted if it is poorly commented. HINT: If you can't finish you will have a better shot at partial credit if you can at least get it to print the first sentence in the appropriate cell. Partial credit will be given for comment-code [pseudo code] as well. Create a sub ("Bikes'), run by the button, that generates a sentence output like the examples in J13 and J14 for each data batch input. Also, use VBA (not worksheet functions directly in those cells) to calculate the totals and averages in the table to the right of the data. Don't forget to handle the city misspellings (without manually changing the city names in the worksheet) in your VBA code. Assume that at least the left three characters are spelled correctly. Also assume there may be more city misspellings elsewhere in the data. Assume additional data blocks might be added or removed at the bottom, and assume there may be more than one blank row between blocks of data (there won't be less than one blank though). Make sure the summary sentences are formatted as shown in the examples (including a period and dollar sign), and appear one after another, rather than next to the block of data. Examples of how the first two summary sentences should be are shown to the right of where your output should be. Make sure your outputs are placed in the appropriate highlighted cells. Comment your code so that a grader can follow it. Points will be deducted if it is poorly commented. HINT: If you can't finish you will have a better shot at partial credit if you can at least get it to print the first sentence in the appropriate cell. Partial credit will be given for comment-code [pseudo code] as well

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Project Management A Managerial Approach

Authors: Jack R. Meredith, Samuel J. Mantel,

7th Edition

470226218, 978-0470226216

More Books

Students also viewed these General Management questions