Automatic documentation from VBA – including function arguments

In documenting VBA procedures automatically I showed how to create web pages that documented your VBA projects. I’ve updated that now to also include a popup showing the detail of function arguments too.  
The page below was automatically created from a VBA project. Hover over the procedure name and it will bring up detail on the arguments.

How does it work?

You can document your entire workbook in one shot, or a module, or group of modules or classes at a time. This example was created by this code

Public Sub docProjects()
    ‘ use the defaults
    ‘ can be static, google, or json
    ‘ do everything, use defaults

    docProjectsExecute “static”, Array(“regxlib”), “docsregxlib.html”

End Sub

How to get it

You can download the cDataSet.xlsm workbook from the Excel Liberation site. There are many projects in that workbook. You can include just the modules you need in your workbook by following the instructions on the Excel Liberation site – this will download and install the latest code and you can get code updates the same way.

See Excel Liberation for more
information on automatic documentation 

(function() {
var po = document.createElement(‘script’); po.type = ‘text/javascript’; po.async = true;
po.src = ‘’;
var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(po, s);

Author: brucemcp

Leave a Reply

Your email address will not be published. Required fields are marked *