J
jokobe
I'm using this code with ACC2003/Vista:
Set WordApp = GetObject(, "Word.Application")
With WordApp
.Visible = True
.Documents.Add Template:=strDocName
'vorname
.ActiveDocument.Bookmarks("fragestart").Select
.Selection.Text = StrClipboard
strsave = strDirName & "\" & strDocumentsPath & "\" &
StrNewName
.ActiveDocument.SaveAs FileName:=strsave
End With
Set WordApp = Nothing
but: sometimes it is working, sometimes not... is there a better solution
available?
Set WordApp = GetObject(, "Word.Application")
With WordApp
.Visible = True
.Documents.Add Template:=strDocName
'vorname
.ActiveDocument.Bookmarks("fragestart").Select
.Selection.Text = StrClipboard
strsave = strDirName & "\" & strDocumentsPath & "\" &
StrNewName
.ActiveDocument.SaveAs FileName:=strsave
End With
Set WordApp = Nothing
but: sometimes it is working, sometimes not... is there a better solution
available?