Hi there
I have created a MasterDelete Macro, that will delete entries from all cells on multiple tabs. However, as I am simply "calling" the macros which delete the individual sheet entries, the msg box that I have added to each and every macro (DeleteEntriesServiceItems, DeleteIntroduction, DeleteAdditionalOnSiteEffort, DeleteTravel, DeleteSurcharges), comes up every time i run this MasterDelete Macro. So the user will have to click "Yes" 5 times before that MasterDelete Macro will have run through everything. How can I disable these msg boxes, while still "calling" the 5 macros? (Alternative would be to copy the codes of the other macros to the MasterDelete Macro without the msgbox).
Thanks!!
Sub MasterDelete()
'will delete entries from alllllllll blue tabs
Application.ScreenUpdating = False
Dim admin_passwort As String
admin_passwort = "Service_Admin"
ActiveSheet.Unprotect password:="Service_Admin"
Dim answer As Variant
answer = MsgBox("Are you sure you want to delete all entries on all tabs?", vbYesNo + vbQuestion, "Delete user entries")
If answer = vbYes Then
Application.DisplayAlerts = False
Worksheets("Service items").Visible = True
Worksheets("Additional on-site effort").Visible = True
Worksheets("Travel").Visible = True
Worksheets("Surcharges").Visible = True
Call DeleteEntriesServiceItems
Call DeleteIntroduction
Call DeleteAdditionalOnSiteEffort
Call DeleteTravel
Call DeleteSurcharges
End If
Application.DisplayAlerts = True
Worksheets("Introduction").Select
Range("A1").Select
Application.ScreenUpdating = True
End Sub
Bookmarks