InContainer() does not differentiate at what level of OU nesting the object resides. Granted, one can take the TranslateName() UDF and parse through the DN to determine where on the tree the object resides.

If there were a macro to do this, it should probably work like the @IPAddressX macro whereby the X denotes the position.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.