Microsoft Excel 2007
Forms exercise
Harder than average exercise

This Microsoft Excel 2007 FORMS 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: Navigate to a sheet (form with workbook open event)

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

1) Download the files needed to start this exercise: exercise-924.zip (and click here if you experience any problems unzipping this file after downloading it).
2) Open the file in the folder shown above.
3) Create a form/macro such that when you open the workbook you see a form allowing you to choose which worksheet to go to:
Exercise screen-shot 2039 Your form could look like this
Training exercise hint One way to do this is as follows.  Create a single-column range called, say, SheetNames (it doesn't matter where), then create the form as above basing your combobox on the SheetNames range (you won't be able to do this unless the range name already exists).  Attach a macro to the workbook's Open event so that it loops over the worksheets building up a single-column list of their names.  Select this list, and set its Name property to be SheetNames - then display your form!
4) Save your workbook as Tabs answer.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.