03-04-2008, 08:08 PM
LastRow type must be one of types that can be converted to string. If it is for example VT_NULL, it cannot be converted to string. Make sure that LastRow.vt is not VT_NULL or other incompatible type. If it is, out "" instead. Or just use out LastRow; err out "".
