When using the Document_Close and Document_Open sub procedures, should I use
the ActiveDocument object or the ThisDocument object to reference the
document?
Generally, use ActiveDocument.
The ThisDocument object refers to the document or, more often, the template that
contains the executing code. That's occasionally useful, but often not what's
intended.
To see the difference, save this code in a template; create a document based on
the template and save it; close and then reopen the document to see what the
message box displays.
Private Sub Document_Open()
Dim msg As String
msg = "ThisDocument is " & ThisDocument.Name
msg = msg & vbCr & "ActiveDocument is "
msg = msg & ActiveDocument.Name
MsgBox msg
End Sub