Consulting

Results 1 to 2 of 2

Thread: How to Get the Name of Executing Macro

  1. #1

    How to Get the Name of Executing Macro

    For the life of me I can't remember how an executing macro can get its own name. Any suggestions?

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    There is a way, which I admit I have forgotten, but it is flawed in that it only works in the same module. The way I do it is to set a variable with the procedure name on entry, MZ-Tools is a big help here.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •