<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Microsoft Office Word Forum - WordBanter - Mailmerge</title>
		<link>http://www.wordbanter.com</link>
		<description><![CDATA[(microsoft.public.word.mailmerge. fields) Discussions on Word's mailmerge functions.]]></description>
		<language>en</language>
		<lastBuildDate>Wed, 22 May 2013 20:25:28 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.wordbanter.com/images/002/misc/rss.jpg</url>
			<title>Microsoft Office Word Forum - WordBanter - Mailmerge</title>
			<link>http://www.wordbanter.com</link>
		</image>
		<item>
			<title>Mail Merge Functionality</title>
			<link>http://www.wordbanter.com/showthread.php?t=155778&amp;goto=newpost</link>
			<pubDate>Wed, 22 May 2013 06:28:45 GMT</pubDate>
			<description><![CDATA[I am getting below error when i click on the Mail Merge button in code --

Method 'Run' of Object '_Application' Fail amd it is asking for the password  code is as below 

Private Sub MergeMailDoc(as_Path As String, as_DocName As String, as_Where As String)
    Dim ls_DbConnection As String
    Dim...]]></description>
			<content:encoded><![CDATA[<div>I am getting below error when i click on the Mail Merge button in code --<br />
<br />
Method 'Run' of Object '_Application' Fail amd it is asking for the password  code is as below <br />
<br />
Private Sub MergeMailDoc(as_Path As String, as_DocName As String, as_Where As String)<br />
    Dim ls_DbConnection As String<br />
    Dim ls_SqlStatement As String<br />
    Dim ls_DocPathName As String<br />
    Dim ls_DocName As String<br />
<br />
    'Windows(&quot;ExamSpec.doc&quot;).Activate<br />
    Documents(&quot;ExamSpec.doc&quot;).Activate<br />
    Selection.EndKey Unit:=wdStory<br />
        <br />
    ls_DocName = as_DocName<br />
    ls_DocPathName = as_Path &amp; &quot;\&quot; &amp; ls_DocName<br />
        <br />
    If Len(Dir(ls_DocPathName)) = 0 Then<br />
        ls_DocName = &quot;NoExamSpec.doc&quot;<br />
        ls_DocPathName = as_Path &amp; &quot;\&quot; &amp; ls_DocName<br />
    End If<br />
        <br />
    Application.Documents.Open ls_DocPathName<br />
    <br />
    ls_DbConnection = as_Path &amp; &quot;\Prs_Data.mdb&quot;<br />
    <br />
    ls_SqlStatement = &quot;SELECT * FROM `ExamSpecReport` &quot; &amp; as_Where<br />
    <br />
    Documents(&quot;ExamSpec.doc&quot;).Application.Run &quot;Mail_Merge&quot;, ls_DocName, ls_DbConnection, ls_SqlStatement<br />
    <br />
    Documents(&quot;ExamSpec.doc&quot;).Application.Run &quot;AppendMailMerge&quot;<br />
    <br />
    Documents(ls_DocName).Close False<br />
<br />
End Sub<br />
<br />
**************************************************  **<br />
Private Sub Mail_Merge( _<br />
                            as_DocName As String, _<br />
                            as_DbConnection As String, _<br />
                            as_SqlStatement As String)<br />
<br />
' ==================================================  =============================================<br />
' PURPOSE:      Implement the built in mail merge functionality provided by MS Word<br />
'<br />
' INVOCATION:   Macro within this document<br />
'<br />
' ASSUMPTIONS:  None<br />
'<br />
' EFFECTS:      tblJobs<br />
'<br />
' INPUTS:       as_DocName -        Output document name<br />
'               as_DbConnection -   Full data source path name<br />
'               as_SqlStatement -   Data source E.g &quot;SELECT * FROM `ExamSpecReport` WHERE...<br />
'<br />
' RETURN:       None<br />
'<br />
' COMMENTS:<br />
'<br />
' WRITTEN BY:   (Advantica)                    DATE:    -<br />
' ==================================================  =============================================<br />
' HISTORY:<br />
' Initials  Date        Comment<br />
' Claud G   06/12/05    Added Subtype:=wdMergeSubTypeWord2000. This suppresses the datalink<br />
'                       properties dialogue from continually appearing when word connects to the<br />
'                       MS Access data source.<br />
' ==================================================  =============================================<br />
<br />
    With Documents(as_DocName).MailMerge<br />
        <br />
        .OpenDataSource _<br />
        Name:=as_DbConnection, _<br />
        ConfirmConversions:=False, _<br />
        ReadOnly:=False, _<br />
        LinkToSource:=True, _<br />
        AddToRecentFiles:=False, _<br />
        PasswordDocument:=&quot;&quot;, _<br />
        PasswordTemplate:=&quot;&quot;, _<br />
        WritePasswordDocument:=&quot;&quot;, _<br />
        WritePasswordTemplate:=&quot;&quot;, _<br />
        Revert:=False, _<br />
        Format:=wdOpenFormatAuto, _<br />
        Connection:=&quot;DSN=MS Access Database;DBQ=&quot; &amp; as_DbConnection &amp; &quot;;PWD=&quot; &amp; ms_DbPassword &amp; &quot;;DriverId=25;FIL=MS Access;MaxBufferSize=2048;PageTimeout=5;&quot;, _<br />
        SQLStatement:=as_SqlStatement, _<br />
        SQLStatement1:=&quot;&quot;, _<br />
        Subtype:=wdMergeSubTypeWord2000     ' Makes sure the mailmerge behaves as in Word2K<br />
                <br />
        .Destination = wdSendToNewDocument<br />
        .MailAsAttachment = False<br />
        .MailAddressFieldName = &quot;&quot;<br />
        .MailSubject = &quot;&quot;<br />
        .SuppressBlankLines = True<br />
        With .DataSource<br />
            .FirstRecord = 1<br />
            .LastRecord = 1<br />
        End With<br />
        .Execute Pause:=True<br />
    End With<br />
End Sub</div>

]]></content:encoded>
			<category domain="http://www.wordbanter.com/forumdisplay.php?f=6">Mailmerge</category>
			<dc:creator>Doga</dc:creator>
			<guid isPermaLink="true">http://www.wordbanter.com/showthread.php?t=155778</guid>
		</item>
		<item>
			<title>excel - word - outlook -2007 mail merge problem</title>
			<link>http://www.wordbanter.com/showthread.php?t=155771&amp;goto=newpost</link>
			<pubDate>Fri, 17 May 2013 12:45:19 GMT</pubDate>
			<description><![CDATA[Hi guys ,

I have got email id's in excel sheet ... i am trying to merge it with word 2007 and send email through outlook 2007

Now what happens lets say i have 2000 email id when i start sending/uploading mails in outlook  after some email id , Emails stop uploading in outlook outbox and word...]]></description>
			<content:encoded><![CDATA[<div>Hi guys ,<br />
<br />
I have got email id's in excel sheet ... i am trying to merge it with word 2007 and send email through outlook 2007<br />
<br />
Now what happens lets say i have 2000 email id when i start sending/uploading mails in outlook  after some email id , Emails stop uploading in outlook outbox and word documents gets hanged ..... <br />
<br />
also at present i manually check all the links and email ids are ok ... Is there any formula which i can use in excel sheet to chck if email id's are properly formatted ... <br />
<br />
Please help guys ... <br />
Thanks <br />
andy</div>

]]></content:encoded>
			<category domain="http://www.wordbanter.com/forumdisplay.php?f=6">Mailmerge</category>
			<dc:creator>andy4u</dc:creator>
			<guid isPermaLink="true">http://www.wordbanter.com/showthread.php?t=155771</guid>
		</item>
	</channel>
</rss>
