I’m writing a function which, for one of its parameters, could sensibly take any of several types of object. E.G. a spreadsheet, range, or cell. However the different object types need slightly different handling.
How do I determine the type of an object at runtime? “Object” won’t do; I need to know whether it’s an object of THIS type or an object of THAT type.