COMP1022Q Lab 2 Moving Around Hong Kong

What You Will Learn in This Lab

Overview

Pre-recorded videos

1. Understand the Given Excel File

2. Check Whether the Inputs Are Correctly Entered

2.1. Show an Error Message If the MTR Stations Are Not Correctly Entered

2.2. Show an Error Message If the Numbers Are Not Correctly Entered

3. Look up and Calculate the Results Based on the Inputs

3.1. Look up the MTR Fare and Travelling Time

3.2. Look up the Taxi Travelling Distance and Time

3.3. Look up the Travelling Distance on Foot

4. Create a Macro to Calculate and Show Some Useful Information

4.1. Show the Developer Tab

4.2. Start Creating a Macro

4.3. Add Code into the Macro So It Makes a Calculation and Displays Messages in Small Windows

4.4. Add the Key Combination To Trigger the Macro

4.5. Try out the Macro

5. Save the Excel File So That It Keeps the VBA Code

Submission