'Assuming you have used a CommandButton from the Activex Controls
'Assign this macro to that button and the code will run once then be disabled
'The code will be placed in the worksheet module
Private Sub CommandButton1_Click()
MsgBox "Macros will be now be disabled. Re-open workbook to re-enable"
Sheets(1).CommandButton1.Enabled = False
CommandButton1.Caption = "Disabled"
End Sub
'Add the following Workbook_Open code to This workbook module
'This will reenable the button upon opening the workbook
Private Sub Workbook_Open()
With Sheets(1)
.CommandButton1.Enabled = True
.CommandButton1.Caption = "Enabled"
End With
End Sub
Gord