Illegal DELETE
You tried to use the Delete statement to delete a member of an object rather than the object itself. The Delete statement requires a plain object name. For example:
Class MyClass
Public X As Integer
End Class
Dim varV As Variant
Set varV = New MyClass
Delete varV.X ' Illegal.
Delete varV ' Legal.
Remove the Delete statement or change its argument to an unqualified object name.