Visual Basic for Applications
Selecting cells exercise
Average difficulty

This Visual Basic for Applications SELECTING CELLS 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: Extending football teams ranges

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

1) Download the files needed to start this exercise: exercise-118.zip (and click here if you experience any problems unzipping this file after downloading it).
2) Write a macro to select cell A7 (containing Chelsea).
3) Extend  this macro so that it selects from this cell down to the bottom of the block of teams:
Exercise screen-shot 167 The macro works however many teams you have
4) Now try deleting a few teams from your worksheet, and checking your macro still selects down to the bottom of the block.
5) Finally, amend your macro so that it selects down and across:
Exercise screen-shot 168 The macro selects to the bottom right corner of the block of teams
6) Save your workbook with the same name, then 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 � Wise Owl Business Solutions Ltd 2007.  All rights reserved.  Design by Branches.