Hi Everyone,
Not really sure how to do this but I have a macro assigned to a button in a worksheet. What I would like to do is AFTER
the macro has been run, lock it until Workbook has been closed and reopened. If the button is clicked prior to closing and reopening
display a message that would say "Clear Form Has Already Run".
Thank you!!
Not really sure how to do this but I have a macro assigned to a button in a worksheet. What I would like to do is AFTER
the macro has been run, lock it until Workbook has been closed and reopened. If the button is clicked prior to closing and reopening
display a message that would say "Clear Form Has Already Run".
Thank you!!
Code:
Sub RUN_ALL_MACROS()'
' RUN_ALL_MACROS Macro
'
Application.ScreenUpdating = False
Application.Run "LOTTERY.xlsb!UNPROTECT"
Application.Run "LOTTERY.xlsb!CLEAR_CHECKBOXS"
Application.Run "LOTTERY.xlsb!RESTORE_COLUMN_K"
Application.Run "LOTTERY.xlsb!COPY_TO_BACKUP"
Sheets("LOTTERY").Select
Range("B2").Select
Application.CutCopyMode = False
Application.Run "LOTTERY.xlsb!LOTTERY_SHEET_CLEAR"
Application.CutCopyMode = False
Application.Run "LOTTERY.xlsb!Copy_Prev_Scan"
Application.Run "LOTTERY.xlsb!PROTECT"
Application.ScreenUpdating = True
End Sub