VBA “user defined type not defined” MSXML2.DOMDocument

When using a VBA tool written by a colleague in Excle, an error is reported as soon as it is run:
user defined type not defined
The error statement checked is:
Dim newFile As MSXML2 DOMDocument
My environment is windows10 + office2016, so I guess he used Microsoft XML V3.0, and I’m using V6.0.
The solution I found online is as follows: If in Tools> References: Microsoft XML V6.0 was selected. When declaring variables, use the following format:
Dim newFile As MSXML2 DOMDocument60

Read More: