OLE Automation Lbound or Ubound on non Array value

Error 442

The LBound or UBound function was used with a property or method of an OLE object (object.property, object.method), but the return value was not an array.