Microsoft Excel 2007
Selecting cells exercise
Average difficulty

This Microsoft Excel 2007 SELECTING CELLS 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: Selecting celeb marriage data using END

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

1) Download the files needed to start this exercise: exercise-902.zip (and click here if you experience any problems unzipping this file after downloading it).
2) Create a macro called SelectWeddingBlock (not a euphemism, just a reference to a block of data), and insert the following code:
Exercise screen-shot 2062 This macro will select the cell shown in yellow below (ie the one below the cell containing the word BRIDE)
3) Run this macro - you should see that it selects Britney Spears in cell B4.
4) Now amend your macro so that it selects all of the brides (no matter how many there might be) using the END keyword:
Exercise screen-shot 2063 Your macro should select from the active cell down to the bottom of the block
5) Finally, amend your macro so that it selects all of the marriage data (from Britney down and across):
Exercise screen-shot 2064 Select the range of cells with the active cell at the top left, where the bottom right corner is obtained by going down from this to the bottom of the block and then across to the right
6) Save this file as Select marriage data.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 � Wise Owl Business Solutions Ltd 2007.  All rights reserved.  Design by Branches.