Microsoft Visual Basic
Loops and conditions exercise
Relatively easy

This Microsoft Visual Basic LOOPS AND CONDITIONS exercise is provided to allow potential course delegates to assess their suitability for the Wise Owl EXCEL 2007 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: Looping over maze to find cottage

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

1) Download the files needed to start this exercise: exercise-910.zip (and click here if you experience any problems unzipping this file after downloading it).
2) Write a macro to select the start cell (B2) and then follow the maze to its natural conclusion, by reading and carrying out the instructions in each cell. 
Exercise screen-shot 2012 The macro starts with this cell selected
Training exercise hint You will find this much easier if you write down your algorithm in pseudo-code first.
3) Save your workbook as Maze solved.xlsm, then close it down.

Thank you for showing an interest in this Excel 2007 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..