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.
Private Sub Command46_Click()
On Error GoTo HandleErr
Dim objWord
Dim objWord As Word.Application
'Start MS Word
Set objWord = CreateObject("Word.Application")
With objWord
.Visible = True
.Documents.Open ("C:\TestDocument.doc")
.ActiveDocument.Bookmarks("Fullname").Select
.Selection.Text = (Forms!MainForm!Surname)
.Options.PrintBackground = False
.Application.DisplayAlerts = wdAlertsNone
'.ActiveDocument.
End With
HandleErr
If Err.Number = 94 Then
objWord.Selection.Text = ""
Resume Next
End If
Exit Sub
End Sub