![]() |
|
#5
|
|||
|
|||
|
Quote:
So are you saying that it is not possible to automate the merge step so that the user of the template sees the document without the field codes? I am getting a "requested object is not available" message when I execute my macro included below. Sub Petition() ' ' Petition Macro ' Macro recorded 6/14/2010 ' Documents.Add Template:= _ "C:\Bergemann\Forfeiture\WordMailMerge\Petition.do t", NewTemplate:=False, _ DocumentType:=0 ActiveDocument.MailMerge.ViewMailMergeFieldCodes = wdToggle End Sub 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 when I run my macro. Thanks. Brandi |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Default Custom Dictionary Based on Document
|
PatrickYork | Word | 3 | 04-03-2015 11:19 PM |
| Dock a custom floating toolbar? | itgoeson | PowerPoint | 0 | 05-25-2010 08:34 AM |
| Docs open under formatting toolbars | clive | Word | 0 | 01-22-2010 06:26 PM |
| command buttons | ronf | Excel | 0 | 04-28-2006 08:32 AM |
| command buttons | ronf | Excel | 0 | 12-03-2005 06:26 AM |