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.

The answer to the exercise will be included and explained if you attend the Wise Owl course listed below!

Category ==> Excel VBA Macros  (38 exercises)
Topic ==> Referencing other applications  (2 exercises)
Level ==> Average difficulty
Course ==> Excel VBA macros
Before you can do this exercise, you'll need to download and unzip this file (if you have any problems doing this, click here for help).

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):

Excel VBA Macros exercise - Referencing other applications (image 1)

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:

Excel VBA Macros exercise - Referencing other applications (image 2)

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.

This page has 0 threads Add post