EXCEL VBA MACROS EXERCISES▼
Excel VBA Macros | Referencing other applications exercise | Mail merge from Excel to Word
This exercise is provided to allow potential course delegates to choose the correct Wise Owl Microsoft training course, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.
You can learn how to do this exercise if you attend the course listed below!
You need a minimum screen resolution of about 700 pixels width to see our exercises. This is because they contain diagrams and tables which would not be viewable easily on a mobile phone or small laptop. Please use a larger tablet, notebook or desktop computer, or change your screen resolution settings.
Open Word, and make sure that you can see any bookmarks that you create.
If you're not sure how to do this, ask your friendly trainer!
Create a new document to contain a prize-winning letter (you can create bookmarks from the Insert tab of the ribbon in Word):
The I-beam pointers are bookmarks that you need to create
Save this file as Mailing letter, and close it down.
Open the workbook in the above folder called People, and write a macro within it which asks you for a person's name:
You could, for example, type Madonna in here
Extend your macro so that it:
- Creates a new Word application
- Opens your letter document in Word
- Goes to the first bookmark and types in the person name
- Goes to the second bookmark and types in the prize name
Save your revised workbook as Annoying Letters, then close it down.