To hide the macro, simply go to the VB Editor and right click on the VBA Project title. Select VBA Project Properties and go to the Protection tab. You can add a password there.
To delete the module, you can use:
Code:
On Error Resume Next
ActiveWorkbook.VBProject.VBComponents.Remove ActiveWorkbook.VBProject.VBComponents("Module1")
[tt]_____
[blue]-John[/blue]
[/tt][red]Quidquid latine dictum sit, altum viditur[/red]
Help us help you. Please read FAQ181-2886 before posting.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.