C
CH
I have the following code that: when pressing "Ctrl+E" runs a macro
(called "Prepare_External") that runs the below code. This code
protects all the worksheets, hides one particular sheet called "Input"
and then protects the workbook. But before I protect the workbook I
want to delete the macro "Prepare_External" so it cannot be run again.
How can I do this?
' Keyboard Shortcut: Ctrl+e
Sub Prepare_External()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
ws.Protect Password:="password"
Next ws
ActiveWorkbook.Worksheets("Input").Visible = False
????delete Macro "Prepare_External"???????????
Activeworkbook.protect password: ="password"
End Sub
(called "Prepare_External") that runs the below code. This code
protects all the worksheets, hides one particular sheet called "Input"
and then protects the workbook. But before I protect the workbook I
want to delete the macro "Prepare_External" so it cannot be run again.
How can I do this?
' Keyboard Shortcut: Ctrl+e
Sub Prepare_External()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
ws.Protect Password:="password"
Next ws
ActiveWorkbook.Worksheets("Input").Visible = False
????delete Macro "Prepare_External"???????????
Activeworkbook.protect password: ="password"
End Sub