Discover the VbaModuleCollection Count property, which efficiently counts your VBA modules, enhancing your coding workflow and organization.... Document doc = new Document ( MyDir + "VBA...modules. VbaProject vbaProject = doc . VbaProject ; Console . WriteLine...