Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a macro for a merged word document

Status
Not open for further replies.

Cybershmuck

Technical User
Jan 21, 2005
21
Hi,

I’m using Word 2003 and would like to know how to add a macro that would perform the following task after a word merge:

1.Select the entire document by pressing CTRL + A
2.Go to Tools > Language > Set Language
3.Select English (Australia) for ‘Mark selected text
4.Uncheck the tick box ‘Do not check spelling or grammar’
5.Click OK

Please advise.

Thanks
 
Hi Cybershmuck,

Why do you need a macro to do what you should do to the mailmerge main document before running the merge?

Tony: I think that should be '.NoProofing = False'

Cheers

[MS MVP - Word]
 
Cybershmuck

you asked:
would like to know how to add a macro

You can record your own macro:
Tools > Macro > Record new macro

Then click:
Select the entire document by pressing CTRL + A
Go to Tools > Language > Set Language
Select English (Australia) for 'Mark selected text
Uncheck the tick box 'Do not check spelling or grammar'
OK

sam


Then click Stop Recording (the small solid square)

Next click [Alt F11] to see your macro



Sub Macro1()
Selection.WholeStory
Selection.LanguageID = wdEnglishAUS
Selection.NoProofing = False
Application.CheckLanguage = True
End Sub
 
Hi all,

The macro works fine except that it only runs after I input a keystroke. How can I get this spell check to run automatically afte the document had been merged.

Cheers,

Stanley
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top