VBA模块更新方法

Posted kmould

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了VBA模块更新方法相关的知识,希望对你有一定的参考价值。

删除模块,重新导入

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

技术图片

以上是关于VBA模块更新方法的主要内容,如果未能解决你的问题,请参考以下文章