This Microsoft Excel GOOD PROGRAMMING TECHNIQUES exercise is provided to allow potential course delegates to assess their suitability for the Wise Owl ADVANCED VISUAL BASIC FOR APPLICATIONS 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-421.zip (and click here if you experience any problems unzipping this file after downloading it). |
| 2) | If you prefer programming in Excel to Access, copy the Regions table to an Excel workbook. |
| 3) | Each region contains within it its unique number, its name and the number of the region to which it belongs (its ParentId field): |
Here, for example, North America is part of the Americas
|
|
| 4) | Write a macro to create "breadcrumbs". |
| 5) | Test your macro out in the immediate window. So for example here is what region 32 should give: |
Your macro should track up the hierarchy till it reaches a region without parent
|
|
| 6) | Save your module and close the database or workbook. |
Thank you for showing an interest in this Advanced Visual Basic for Applications 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