This macro removes empty branches from the Tree.
It is often the case that not all branches in the Tree are actually populated with any items (e.g. the "Labels" tree). Upon building the tree for the current document or project, this macro will automatically remove those empty branches, thus cleaning the tree.
Of course, these branches will not be removed permanently. Whenever you rebuild the tree, and the respective branches are no longer empty, they will show up as usual.
Macro contributed by Robert <w.m.lgmx.net>