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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started