Microsoft Office
Messages and variables exercise
Average difficulty

This Microsoft Office MESSAGES AND VARIABLES exercise is provided to allow potential course delegates to assess their suitability for the Wise Owl EXCEL VISUAL BASIC course only, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.

Exercise: Showing team name, ground and colours

A full answer to this exercise is provided as part of the training course!

1) Download the files needed to start this exercise: exercise-122.zip (and click here if you experience any problems unzipping this file after downloading it).
2) Create a macro called ShowDetails which:
  • Selects cell A7 (the cell containing Chelsea)
  • Reads their ground name into a variable
  • Displays a message showing where this team plays
3) Your final message should look like this:
Exercise screen-shot 175 The message box concatenates the team and ground names
4) Amend your macro so that it selects cell A8 (Coventry) to start with.  Does it still work?  (It should).
5) If you have time only, add to your macro so that it displays the team colours also:
Exercise screen-shot 176 The full and final message
6) Save this workbook and close it down.

Thank you for showing an interest in this Excel Visual Basic training course! As mentioned above, full answers to this and other exercises are provided on the course. On all Wise Owl scheduled courses delegates can take away these model answers (together with their own efforts!) on a free USB stick.

All content copyright Wise Owl Business Solutions Ltd 2008.  All rights reserved..