Question: 13. Insert a macro button next to your Add Leg to Itinerary button a. The label of this button should be Miles Used b. When

13. Insert a macro button next to your Add Leg to Itinerary button\ a. The label of this button should be Miles Used\ b. When pressed, a message box should pop up saying You have used XXX\ miles out of 350, where XXX is the distance in the named range dist.\ Hint: Create a new subroutine using the function MsgBox (prompt, [ buttons,\ ] [ title, ] ). Here is a tutorial on the VBA MsgBox function:\ https://trumpexcel.com/vba-msgbox/\ i. For the prompt argument, use the & to combine text and the variable\ Range("dist") to display You have used XXX miles out of 350.\ ii. Use the buttons argument to display the i information icon.\ iii. Use Miles as the title of the message box.\ iv. Name the macro Miles.\ 14. In the Driving itinerary worksheet, create a macro named PrintOrder. Assign\ the shortcut key Ctrl+D. The macro should:\ a. Set the Order Form print area to the range B1:E20\ b. Center the print area horizontally.\ c. Add a footer in the right-hand side of the page showing the current date and\ time (the date/time stamp will be updated every time you run the macro).\ d. Notice that there is a comment in cell B2. Ensure the comment does not\ print when you run your macro.\ e. The macro should only set the print variable, not actually send output to a\ printer.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!