Methods to inspect other methods and classes


Are there any VBA methods similar to Python methods like globals(), locals(), dir() and even help() which allow you to inspect and learn more about VBA methods programmatically or from the immediate pane, for example? I.e., to print a list of arguments that some given method takes, or the methods of a class?


Thank you very much.

5 Replies



The Code Documentor (free; Excel only)

Code Documenter (free; requires that you have Microsoft Access; works with Access, Excel, PowerPoint and Word) (paid; for VBA, VB5, VB6 and Visual Studio)

Thanks. So does this provide more VBA commands/functions or are they macros you run, i.e. Subs?


The first and third one are add-ins in the Visual Basic Editor; they add new menu options.

The second one is an Access database with forms to let you specify what you want to document.

Thanks. Is it possible to execute commands in the Immediate Pane but via the Command Prompt, somehow sending the Command Prompt input to the immediate pane and bringing back the output? Or any good way to work with VBA from the Command Prompt?


I cannot help you with that, sorry.