Create a wizard that will guide users through a few steps


VBA Assignment

Question 1: Create a wizard that will guide users through a few steps to enter some information used to calculate travel expenses.

Requirements:

1. You will create an ActiveX control button on the worksheet ("Sheet1") to launch the wizard process.

2. The wizard should include the following steps:

a. Step 1: Entering the name

b. Step 2: The number of miles traveled on the trip

c. Step 3: The average miles per gallon (MPG) on the trip

d. Step 4: The price per gallon paid for gas on the trip

3. You should include at least the following controls in each step: a label showing what information a user should enter in this step, a place where the user can enter the information, a cancel button, a button to go back to the previous step, a button to go to the next step, and a finish button.

4. More requirements for the buttons:

a. By clicking the cancel button, there should be a pop-up window asking the user whether s/he would like to cancel the process. "Yes" cancels the process and "No" returns to the wizard.

b. A user should not be able to go back in the first step or go to the next in the last step.

c. If the user clicks the button to go to the next step without entering any information, there should be a message box reminding him or her to enter information and not allowing to go to the next step.

d. A user can only finish in the last step. By clicking the finish button, there should be a new row in the data range showing all the information just entered. (Note: the column names should not be replaced.)

5. Once a record is being created, the Excel file should automatically calculate the total travel expense for this trip and store it in the last column.

6. The next time you run the wizard, your utility should create another record in the data range (a new row). It should not replace any records before.

7. Users should be able to continue working on the worksheet with the wizard being displayed.

Format your assignment according to the following formatting requirements:

1. The answer should be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides.

2. The response also include a cover page containing the title of the assignment, the student's name, the course title, and the date. The cover page is not included in the required page length.

3. Also Include a reference page. The Citations and references should follow APA format. The reference page is not included in the required page length.

Solution Preview :

Prepared by a verified Expert
Visual Basic Programming: Create a wizard that will guide users through a few steps
Reference No:- TGS02968539

Now Priced at $70 (50% Discount)

Recommended (97%)

Rated (4.9/5)