Microsoft Access
Revision of VBA exercise
Average difficulty

This Microsoft Access REVISION OF VBA 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: Eagle and Owl fable in Word

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

1) Download the files needed to start this exercise: exercise-415.zip (and click here if you experience any problems unzipping this file after downloading it).
2) Create a macro to loop over all of the characters in the second paragraph, adding each to the front of a string variable so that you can display the paragraph backwards:
Exercise screen-shot 645 The second paragraph in reverse!
3) Be warned that (like most things in Word) this is not easy, and you will need to read the following notes carefully:
  • The active document in Word can be referred to as ActiveDocument - it has a Paragraphs collection
  • Any paragraph has a Range property, which itself consists of a collection of Characters
  • There is no such thing as a Character object in Word - instead, a Characters collection (bizarrely) consists of individual Range objects, each one character long
4) When you have finished, save your document with the same name and 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..