Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Professional SQL Server 2012 Internals And Troubleshooting

Authors: Christian Bolton, Justin Langford

1st Edition

1118177657, 9781118177655

More Books

Students also viewed these Databases questions

Question

What are you most proud of?

Answered: 1 week ago

Question

Which kind of lens is used to make a magnifying glass?

Answered: 1 week ago

Question

In which of the following environments can sound travel fastest?

Answered: 1 week ago