Hi, I have got someway with my limited VBA knowledge (it is probably ugly and bloated!) to making this work but am struggling on the delete aspect.
I have a series of checkboxes which, if checked will create a new worksheet based on a hidden template within the workbook. If the user subsequently decides they don't need the worksheet, I want a message box to appear and for the worksheet to be deleted if the user selects Yes or Left if they select No and for the checkbox to be automatically populated again.
I have posted where I have got to below and would appreciate any help given.
Ta![]()
Private Sub chkBROCs_Click() Application.ScreenUpdating = False If chkBROCs.Value = True Then Sheets("Template").Activate Sheets("Template").Copy After:=Sheets(1) Sheets("Template (2)").Visible = True Sheets("Template (2)").Select Sheets("Template (2)").Name = "BROCS" Application.WindowState = xlMaximized Sheets("BROCS").Range("A5").Select Else I AM STUCK HERE End If Application.ScreenUpdating = True End Sub
Bookmarks