View Single Post
 
Old 06-14-2010, 07:20 AM
Brandi Brandi is offline Windows XP Office 2003
Novice
 
Join Date: Jun 2010
Posts: 13
Brandi is on a distinguished road
Default

I do see how to attach a macro to a button. I see now that there is a Macro category on the Commands tab of customize toolbars. So the remaining question is why am I getting a "requested object is not available" message when I execute my macro?
If I perform the exact same steps while not recording a macro, my template opens up a new document as expected and the merge data button is available. If I record these exact same steps, I get the "requested object is not available" debug on the last statement of my code (ActiveDocument.MailMerge.ViewMailMergeFieldCodes = wdToggle) which should merge the data into the document. The merge button is greyed out and not available to do manually either.
Reply With Quote