Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Boell Fischer   on Dec 29 In MS Office Category.

  
Question Answered By: Akins Massri   on Dec 29

Courtesy of the website ozgrid.com I found code which could delete  a module

Dim vbCom As Object
Set vbCom = Application.VBE.ActiveVBProject.VBComponents

vbcom.delete vbcom.item("Module2")

But I have no idea how you are going to be able to use it within a module  as
VBProject does not expose its passwords properties to the outside for obvious
reasons.

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Self distruction when someone trying to open VBA module Or get search suggestion and latest updates.


Tagged: