Is there any way that I can make a one-shot button? I want to use a button only once after the worksheet has been copied.
Is there any way that I can make a one-shot button? I want to use a button only once after the worksheet has been copied.
There are many ways of doing that, but all of them require that you modify the code the button calls.
Static Repeat As Boolean
If Repeat Then
MsgBox "You already performed this action"
Else
Repeat = True
' do your stuff here
End If