WantsToLearn
Programmer
I am trying to write some generic functions to encapsulate various Excel features I use many times in VBA code. Some things in Excel work on ranges, worksheets, etc so I usually define the argument as Variant and then use IsObject to verify that I got an object.
Sometimes I want to know whether I am dealing with a range or with a worksheet. With scalar variables you can check the variable type with VarType. How do I do the equivalent with objects? Is there an enumeration somewhere I can use?
Thanks!
Sometimes I want to know whether I am dealing with a range or with a worksheet. With scalar variables you can check the variable type with VarType. How do I do the equivalent with objects? Is there an enumeration somewhere I can use?
Thanks!