After serious thinking Peter Jason wrote :
Here is some code to list all of the modules in the current Database.
I havent got MSoft 365 to test with, but works fine in the older non
Dim mod As Variant
For Each mod In CurrentProject.AllModules
You could create a Table and insert the names one at a time in there,
and then slice and dice anyway you like.