I have an excel with the following vba code:
Dim objWord
Dim objDoc
Set objWord = CreateObject("Word.Application")
Set objDoc = objWord.Documents.Open("Ruta") 'Ruta verificada
And I have a word document with this vba code:
Private Sub Document_Open()
Dialogs(wdDialogFilePrint).Show
End Sub
If I open the word "by hand" everything works correctly, but if I execute the macro in the excel, after 40-50 seconds this message appears:
And keep trying ... until I force the closing of the excel.
Any suggestions?