Ganz rudimentär sieht das Ganze aus:
Set objWord = Nothing
On Error Resume Next
Set objWord = GetObject("", "Word.Application")
If Err = 208 Then ' Fehler 208 tritt auf wenn Word noch nicht läuft
Err = 0
Set objWord = CreateObject("Word.Application")
objWord.Visible = True 'Word sichtbar machen
End If 'If Err = 208 Then
Call objWord.Documents.Add
Call objWord.Selection.TypeText( "Das ist ein test" )
'Aktives Dokument als PDF speichern und als PDF öffnen.
Call objWord.ActiveDocument.ExportAsFixedFormat("D:\Daten\Test1.pdf", 17, True)
Axel