Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Callum Smith   on Mar 24 In MS Office Category.

  
Question Answered By: Calandre Bernard   on Mar 24

I can provide one solution to delete one module from Excel VBA Project
suppose that there are 2 module files : Module1 and Module2
I will write one function in Module1 to remove Module2

========================

Sub deleteModule2()
Set com = ThisWorkbook.VBProject.VBComponents.Item("Module2")

ThisWorkbook.VBProject.VBComponents.Remove (com)

End Sub

========================

Share: 

 
 
Didn't find what you were looking for? Find more on Delete VB/Macro Sheet Or get search suggestion and latest updates.


Tagged: