folgende frage durch unten beigefügten code veranlasse ich über excel
das in word ein doc. gedruckt wird und sofort Word wieder geschlosen
sein soll.
jedoch bekomme ich als MsgBox ob ich die datei speichern möchte kann
man diese mitteilung unterdrücken so das es gar nicht nachfragt nur
Öffnet, druckt und schliest.
Sub Schaltfläche1_BeiKlick()
Dim appWord As Object
Dim doc As Object
Application.DisplayAlerts = False
Set appWord = CreateObject("Word.Application")
Set doc = appWord.Documents.Open(ThisWorkbook.Path & "\test1.doc")
Application.DisplayAlerts = True
doc.PrintOut
appWord.Quit
Set doc = Nothing
Set appWord = Nothing
danke für hinweise
gruss