Word VBA - Error 5852/Office 2003 problems

dvs

New Member
Joined
Jul 16, 2002
Messages
9
I have a macro in a mail merge main document which does the merge and then saves the form letters document. Since we have tried using this document on a computer using Word 2003, however, every time we open it we get a runtime error 5852 - requested object not available on the line that says .Destination = wdSendToNewDocument

I've looked around and I think the problem is because of this new security feature in Office 2003 that prompts you whenever you open a merge document. There's a registry edit that will fix it but we'd rather avoid that.

http://support.microsoft.com/?kbid=825765

Is there any other workaround? i.e. a way to tell it in the code to say "Yes" to that prompt if it comes up?
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hmmm...

Doesn't look good. As far as I know you can't get around the message in code, because otherwise hackers would do the same -- similar to the message that appears when you open a workbook with code.

At least you have the required registry hack, but doing that on every installed Office machine could be a right pain. Commiserations... :cry:

Denis
 
Upvote 0
I figured that was the case, I just wanted to make sure there wasn't a simpler solution I was missing. Thanks anyway.
 
Upvote 0

Forum statistics

Threads
1,224,847
Messages
6,181,325
Members
453,032
Latest member
Pauh

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top