WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

OLE with Word

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Mail Merge Warning in Word


Question:

I updated to OfficeXP sp3 after having numerous errors and crashed in word & outlook, now there's a new warning message that pops up in word every time you do a mail merge (see attached screen shot). I threw
oWord.Visible = @FALSE ;Don't want to see Word pop up!
oWord.DisplayAlerts = @FALSE ;don't prompt the user for anything ;006
into the code in the hopes that it would supress the question, and it does. However, it has the same effect of hitting 'no' on the new warning pop-up, and it removes all the mail-merge setup data in the document.

Anyone have any idea how to feed a 'yes' to Word as it opens a mail merge doc? I don't want to have word be visible during processing.

Answer:

Looks like you have to set a Registry Value.

For Word 2002 Service Pack 3


RegSetDword(@RegCurrent,"Software\Microsoft\Office\10.0\Word\Options[SQLSecurityCheck]","00000000")

Check out the following MicroSoft Tech article on this issue:

http://support.microsoft.com/default.aspx?scid=kb;en-us;825765


Article ID:   W16647
File Created: 2005:02:18:12:21:44
Last Updated: 2005:02:18:12:21:44