I have this simple code:
Code:
Option Explicit
Global GlobDoc As Document
Sub Call_Autotexto()
Dim AppDoc2 As Document
Set GlobDoc = ActiveDocument
Set AppDoc2 = Documents.Open("E:\X\_AutoTexto.docm", Visible:=False)
Set AppDoc2 = Nothing
MsgBox "oi"
GlobDoc.Activate
End Sub
The "AutoTexto" have some complex vba code that runs and closes itself, but there's no "Oi" msgbox.
The code after documents open seems not working.
Any ideas?
Thanks.