Why is VBA's VarType function saying this COM object is a string? (Object is instance of COM version of .NET's System.Object class.) Is it a bug?
问题 Question summary When I use VBA's VarType function, passing it an instance of the Object class available in a mscorlib.dll library reference (a .NET library reference), the value returned is 8 . According to VBA documentation here, this means the object is a string. This seems ridiculous. My question is why is the VarType function returning a string-type value for instances of this Object class from the .NET-library VBA reference? Is it a bug? Background information I suspect that the fact