MacroContainer Property Example
This example displays the name of the document or template in which the module that contains the running procedure is stored.
Set cntnr = MacroContainer MsgBox cntnr.Name