在很多公司销售人员都需要大量发送类似于客户邀请,公司的介绍等邮件,这些邮件的主要内容基本一致且需要发送的数量庞大,如果使用邮件抄送或在OUTLOOK中添加多个联系人的方式,邮件的头部是不会包含客户姓名等特定的客户信息的,这样会使客户感觉邮件并不是发送给自己的有点像垃圾邮件。怎样使邮件的正文不变,在邮件前部自动添加以收件人的姓名开始的问候语呢?
其实使用Word的邮件合并功能就可以非常方便的完成此类邮件的批量发送。下面就跟这我来实际操作一下吧。
1.打开Word,并勾选,视图->工具栏->邮件合并,此时工具栏中会显示邮件合并的工具,但大部分按钮均是灰色的。
2.如下图:您需要先选择主文档类型为电子邮件。
3.按下图从左至右操作,先选择发送的EMAIL的数据源后,后面的按钮就可以使用了。数据源可以是SQL,ACCESS,Outlook通讯簿等。
4.为了方便讲解,我这选择的是EXECL,在这个EXECL中的内容,非常简单。你可以通过各种方式导出这样的数据表,大部分邮件程序都支持。如图:前面是姓名后面是MAIL地址。
5.选择完数据源后按上图提示可选择相应的收件人,默认情况下是对EXECL中所有的人员进行邮件发送的。
6.插入合并域,选择其中的姓名。然后可以对邮件进行预览调整。
7.最后选择合并到电子邮件。所有的邮件就会全部存入MicrosoftOutlook的发件箱中,进入MicrosoftOutlook发件箱,可以单独对某些邮件进行更改,如果不需要直接选择发送接收即可。
是不是很方便呢,您可以编辑多个这样的WORD文档,下次您需要发送这样的邮件只需要打开相应的Word文件再次选择合并到电子邮件即可。另外其实邮件合并的功能选项中还有其它的功能我没有介绍,可以非常方便的应用用在很多工作上。多开动一下脑筋想一想它还可以怎么用?
一.打开EXCEL并设置宏安全性为中。
二.利用VisualBasic控件工具箱在EXCEL表格中添加一个按钮控件。
三.编辑CommandButton1_Click()事件代码如下。(其中\*.doc代表需要导入的WORD文档在当前目录下,wDoc.Tables(3)代表Word文档中的第3个表格,X代表Word中行列的坐标,Range后面的英文字母代表导入到当前表格中的那一列)
Private Sub CommandButton1_Click()
On Error Resume Next
Dim h As Integer
Dim wApp As New Word.Application
Dim wDoc As Word.Document
Dim wTable As Word.Table wf = Dir(ThisWorkbook.Path & "\*.doc")
Do While wf > " "
Set wDoc = wApp.Documents.Open(ThisWorkbook.Path & "\" & wf)
Set wTable = wDoc.Tables(3)
h = [b65536].End(xlUp).Row + 1
With wTable
x = .Cell(1, 2).Range.Text
Range("a" & h) = Left(x, Len(x) - 2)
x = .Cell(2, 2).Range.Text
Range("b" & h) = Left(x, Len(x) - 2)
x = .Cell(3, 2).Range.Text
Range("c" & h) = Left(x, Len(x) - 2)
x = .Cell(4, 2).Range.Text
Range("d" & h) = Left(x, Len(x) - 2)
x = .Cell(5, 2).Range.Text
Range("e" & h) = Left(x, Len(x) - 2)
x = .Cell(6, 2).Range.Text
Range("f" & h) = Left(x, Len(x) - 2)
x = .Cell(7, 2).Range.Text
Range("g" & h) = Left(x, Len(x) - 2)
x = .Cell(8, 2).Range.Text
Range("h" & h) = Left(x, Len(x) - 2)
x = .Cell(9, 2).Range.Text
Range("i" & h) = Left(x, Len(x) - 2)
x = .Cell(10, 2).Range.Text
Range("j" & h) = Left(x, Len(x) - 2)
x = .Cell(11, 2).Range.Text
Range("k" & h) = Left(x, Len(x) - 2)
x = .Cell(12, 2).Range.Text
Range("l" & h) = Left(x, Len(x) - 2)
x = .Cell(13, 2).Range.Text
Range("m" & h) = Left(x, Len(x) - 2)
x = .Cell(14, 2).Range.Text
Range("n" & h) = Left(x, Len(x) - 2)
x = .Cell(15, 2).Range.Text
Range("o" & h) = Left(x, Len(x) - 2)
x = .Cell(16, 2).Range.Text
Range("p" & h) = Left(x, Len(x) - 2)
x = .Cell(17, 2).Range.Text
Range("q" & h) = Left(x, Len(x) - 2)
x = .Cell(18, 2).Range.Text
Range("r" & h) = Left(x, Len(x) - 2)
x = .Cell(19, 2).Range.Text
x = Left(x, Len(x) - 2)
Range("s" & h) = Trim(Mid(x, InStr(x, "组树数量:") + 5))
End With
Set wTable = Nothing
wDoc.Close
Set wDoc = Nothing
wf = Dir
Loop
Set wApp = Nothing
End Sub