Bekijk de onderstaande video om te zien hoe je onze site als een web app op je startscherm installeert.
Opmerking: Deze functie is mogelijk niet beschikbaar in sommige browsers.
Sub OpenWordDoc()
'In order to use this code you must set a reference to the Word object library by doing this.
'In the VB Editor click Tools, References. Then search for Microsoft Word n.n Object Library
Dim wdApp As Word.Application, wdDoc As Word.Document
On Error Resume Next
Set wdApp = GetObject(, "Word.Application")
If Err.Number <> 0 Then 'Word isn't already running
Set wdApp = CreateObject("Word.Application")
End If
On Error GoTo 0
Set wdDoc = wdApp.Documents.Add("C:\temp\anytemplate.dot")
wdApp.Visible = True
'You can now do whatever you like with the Word document e.g.
wdDoc.PrintOut
wdDoc.SaveAs "C:\temp\hello.doc"
wdDoc.Activate
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.