Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Function Main()
Dim WordFileTemplateName 'As String
Dim WordFileOutputName 'As String
Dim appword 'As Object
WordFileTemplateName = "s:\somedir\mailmerge.doc"
WordFileOutputName = "c:\test.doc"
Set appword = CreateObject("word.application")
appword.Visible = True
appword.Documents.Open WordFileTemplateName
With appword.ActiveDocument.MailMerge
.Destination = wdSendToNewDocument
.MailAsAttachment = False
.MailAddressFieldName = ""
.MailSubject = ""
.SuppressBlankLines = True
.Execute Pause=True
End With
With appword.ActiveDocument
.SaveAs(WordFileOutputName)
End With
appword.Quit (False) 'without saving
set appword = nothing
Main = DTSTaskExecResult_Success
End Function