Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Dorak Dorak is offline
external usenet poster
 
Posts: 6
Default Mailmerge FindEntry problem

In Word, I have a letterhead template that contains a writer's block in table
format. The macro that gets data from an Excel table works fine in Word
2003, but in Word 2007 the merge does not execute. It pulls data only from
the first row of the table.
Could someone advise me as to what might be wrong? Below is my code.

Sub findentry()
'
' findentry Macro
' Macro recorded 8/7/2007 by Admin
'
ActiveDocument.MailMerge.MainDocumentType = wdFormLetters
ActiveDocument.MailMerge.OpenDataSource Name:= _
"N:\Templates\EmployeeData.xls", ConfirmConversions:=False,
ReadOnly:= _
False, LinkToSource:=True, AddToRecentFiles:=False,
PasswordDocument:="", _
PasswordTemplate:="", WritePasswordDocument:="",
WritePasswordTemplate:= _
"", Revert:=False, Format:=wdOpenFormatAuto, Connection:= _
"Provider=Microsoft.Jet.OLEDB.4.0;Password="""";Us er ID=Admin;Data
Source=N:\Templates\EmployeeData.xls;Mode=Read;Ext ended
Properties=""HDR=YES;IMEX=1;"";Jet OLEDB:System database="""";Jet
OLEDB:Registry Path="""";Jet OLEDBatabase Password="""";Jet OLEDB:Engine
Ty" _
, SQLStatement:="SELECT * FROM `AllPersonnel$`", SQLStatement1:="", _
SubType:=wdMergeSubTypeAccess
ActiveDocument.MailMerge.ViewMailMergeFieldCodes = wdToggle
WordBasic.MailMergeFindEntry
End Sub
Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mailmerge Problem DennisB Mailmerge 0 March 18th 08 04:19 PM
Mailmerge problem Frustrated Mailmerge 3 April 27th 07 09:22 PM
Mailmerge printer problem Ian Mailmerge 4 May 3rd 06 12:42 PM
Mailmerge Printing Problem Andi Mailmerge 5 October 4th 05 06:30 PM
XML Word Mailmerge problem Enq Mailmerge 1 March 22nd 05 12:48 AM


All times are GMT +1. The time now is 09:45 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"