We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Sub DeleteAllVBACode() Dim VBProj As VBIDE.VBProject Dim VBComp As VBIDE.VBComponent Dim CodeMod As VBIDE.CodeModule Set VBProj = ActiveWorkbook.VBProject For Each VBComp In VBProj.VBComponents If VBComp.Type = vbext_ct_Document Then Set CodeMod = VBComp.CodeModule With CodeMod .DeleteLines 1, .CountOfLines End With Else VBProj.VBComponents.Remove VBComp End If Next VBComp End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|How do I use a SUMIF function when the cells to add together are not adjacent to each other?||19||80|
|Outlook Macro to delete emails not meeting keywords||56||111|
|vba code to create folders according to a hyperlink||14||41|
|Excel (XLSM) on iPad||3||33|
Join the community of 500,000 technology professionals and ask your questions.