Microsoft Developer
Messages and variables exercise
Relatively easy

This Microsoft Developer MESSAGES AND VARIABLES 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: Macro to get user name and show length

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

1) Create a new workbook.
2) Write a macro called HowManyLetters which asks the user for a name ...
Exercise screen-shot 173 This uses the InputBox function
3) ... and then shows them how many letters are in their name:
Exercise screen-shot 174 This assumes the user typed in Bob above
4) Save this workbook as NameCheck.xls, and 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 copyright Wise Owl Business Solutions Ltd 2008.  All rights reserved..