How to get current module/scope in macro

Sorry for the double-post by mistakes. The first one is here.

I cannot delete this duplicated one, and thanks a lot if anyone helps me with it.