{"id":29,"date":"2005-11-02T21:40:39","date_gmt":"2005-11-03T02:40:39","guid":{"rendered":"http:\/\/www.juixe.com\/techknow\/?p=29"},"modified":"2005-11-02T21:40:39","modified_gmt":"2005-11-03T02:40:39","slug":"word-mail-merge","status":"publish","type":"post","link":"http:\/\/juixe.com\/techknow\/index.php\/2005\/11\/02\/word-mail-merge\/","title":{"rendered":"Word Mail Merge"},"content":{"rendered":"<p>&#8220;Learn something new every day.&#8221;  That is my personal motto and I really feel that everyday I learn something new.  Well, the other day I learned about MS Word&#8217;s Mail Merge capabilities.  Word&#8217;s Mail Merge feature allows you to define a Word document template to be used for every row in a data source file.  Your data source can be an Excel file or a Word document with a single table.  Once you have a data source file you can merge it with the template using the following Visual Basic script code:<\/p>\n<pre>\nSub OpenWord(fileName, datasource)\n   Set Word = WScript.CreateObject(&quot;Word.Application&quot;)\n   Word.Visible = True\n   Set doc = Word.Documents.Open(fileName)\n   doc.MailMerge.OpenDataSource(datasource)\n   doc.MailMerge.Execute True\nEnd Sub\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;Learn something new every day.&#8221; That is my personal motto and I really feel that everyday I learn something new. Well, the other day I learned about MS Word&#8217;s Mail Merge capabilities. Word&#8217;s Mail Merge feature allows you to define a Word document template to be used for every row in a data source file. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","footnotes":""},"categories":[11,3,5],"tags":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p902K-t","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/posts\/29"}],"collection":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/comments?post=29"}],"version-history":[{"count":0,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/posts\/29\/revisions"}],"wp:attachment":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/media?parent=29"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/categories?post=29"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/tags?post=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}