Do you mean the .txt file closes because the docx file already was closing:
Code:
Sub saveastxt()
Dim RetVal As Object
Dim strDelete As String
Dim strName As String
On Error Resume Next
ActiveDocument.Save
If ActiveDocument.Path = "" Then
MsgBox "Document not saved!"
GoTo lbl_Exit
End If
strDelete = ActiveDocument.FullName
strName = Replace(ActiveDocument.FullName, ".docx", ".txt")
ActiveDocument.SaveAs2 FileName:=strName, FileFormat:=wdFormatText
ActiveDocument.Close 0
'RetVal = Shell("notepad.exe " & strName, 1) 'Don't open the saved .txt file
Kill strDelete
lbl_Exit:
Exit Sub
End Sub