What is Best Way to Determine if Macro was Called by Another Macro (Execute Macro)?

I have a macro that can run standalone, or be called as a SubMacro.
So, I need a reliable method to determine when it is called as a SubMacro.

Here is my current method. If you know of a better method, please post.

Before I saw your solution, that’s exactly what I was going to recommend. So your way looks good to me!

1 Like