
Sub Salva_senza_VBA() Dim VBC As Object ChDir "C:" ActiveWorkbook.SaveAs Filename:="C: est.xls" With ActiveWorkbook.VBProject For Each VBC In .VBComponents If VBC.Type = 100 Then With VBC.CodeModule .DeleteLines 1, .CountOfLines .CodePane.Window.Close End With Else: .VBComponents.Remove VBC End If Next VBC End With Application.Quit SendKeys "%O" End Sub |
