6

I have an Excel file with multiple VBA-Macros. For documentation purposes I want to create a UML Call Diagram, or similar that represents which macro calls which other one.

Is there a way to automatically create one?

Angelo Fuchs
  • 931
  • 3
  • 10
  • 29

1 Answers1

2

Based on Engineer Toast's comment (and expanded with some screenshots of the respective tools):

People have made tools for exactly this. Google "document vba project"
Here's one that costs money: Aivosto (Project Analyzer Enterprise Edition)
Here's one that doesn't: contextures.com/ExcelTemplates/ExcelVBACodeDoc.zip (direct link)

Project Analyzer screenshot

Screenshot from the Aivosto homepage showing Project Analyzer Enterprise Edition

ExcelVBACodeDoc screenshot

Screenshot showing ExcelVBACodeDoc output

(I guess this is not exactly what you wanted, since it creates no diagram but rather a list of procedures)