删除模块,重新导入
1 Sub 更新模块() 2 With ThisWorkbook.VBProject 3 .VBComponents.Remove .VBComponents("模块1") '删除模块 4 .VBComponents.Import ("C: emp模块1.bas") '导入模块 5 End With 6 End Sub