Thanks for replying. Here is a part of my code which, as you can see, is still incomplete but will give you some idea. In the first block, if the Return sheet does not exist in the workbook then the macro stops. I would like it to look for the sheet and if it does not exist then show a message to say it does not exist and go look for the next sheet in the next block.
[
Sub Sheetdel()
' Deletes selected sheets.
Application.DisplayAlerts = False
Sheets("Returns").Select
Dim Msg, Style, Title, Response, MyString
Msg = "Is This Multiple Returns?" ' Define message.
Style = vbYesNo + vbDefaultButton2 ' Define buttons.
Title = "Please Confirm Return Type" ' Define title.
Response = MsgBox(Msg, Style, Title)
If Response = vbYes Then ' User chose Yes.
MyString = "Yes"
' Perform some action. (Do nothing)
Else ' User chose No.
MyString = "No" ' Perform some action.
ActiveWindow.SelectedSheets.Delete
End If
Application.DisplayAlerts = False
Sheets("BInvoices").Select
ActiveWindow.SelectedSheets.Delete
Application.DisplayAlerts = False
Sheets("Customer's Details").Select
ActiveWindow.SelectedSheets.Delete
End Sub