This Microsoft Visual Basic LOOPING OVER COLLECTIONS 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.
A full answer to this exercise is provided as part of the training course!
| 1) | Download the files needed to start this exercise: exercise-916.zip (and click here if you experience any problems unzipping this file after downloading it). | ||
| 2) | The football kit spreadsheet in the workbook above has a serious error in it: | ||
A clue - the team strip is not red ...
|
|||
| 3) | Write a macro which loops over all of the cells in the range shown, changing any green cells to the team colour of your choice (please assume that your team has the same colour shirt as socks for the purposes of this example). | ||
| 4) | The method you should use is:
|
||
|
|||
| 5) | Save this workbook as Definitely not blue.xlsm, and 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.
Recommended sites: C# corner | Computer tutorials | Training classes