Microsoft Visual Basic
Good programming techniques exercise
Average difficulty

This Microsoft Visual Basic 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.

Exercise: Recursive programming

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

1) In any application (Word, Excel, PowerPoint or whatever) write a macro which calculates the factorial of a number.  Your macro should use recursive program calls.
Training exercise hint The factorial of 4 - often written as 4! - equals 4 * 3 * 2 * 1.
2) Save this file with a suitable name, then close it down.

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.

All content copyright Wise Owl Business Solutions Ltd 2008.  All rights reserved..