The weakness exists in the way that VBA looks at the properties of documents passed to it when the document is opened by a host application .