diff --git a/extract_vba.py b/extract_vba.py index aa832dd..7840194 100644 --- a/extract_vba.py +++ b/extract_vba.py @@ -305,6 +305,11 @@ class VBAExtractor: # 解析Attribute信息 attributes, clean_code = self.parse_attributes(vba_code) + # 检查是否有实际代码内容(跳过空模块) + if not clean_code.strip(): + print(f" [跳过] {module_name} - 无实际代码内容") + return + # 确定实际的模块类型 module_type = self._determine_module_type(module_name, category)