Try with this code:
Sub Macro1()
Application.ScreenUpdating = False
For a = 1 To 5
For b = 1 To 10
For c = 1 To 10
mySheetName = "D" & Chr(64 + a) & "C" & b & "F" & c
With Sheets(mySheetName)
.Range("C8:L107").ClearContents
.Range("C8").Select
End With
Next
Next
Next
MsgBox "All Drawer Files Have Been Deleted, Click OK To Proceed."
Sheets("START").Select
Application.ScreenUpdating = True
End Sub
You can alse use this shorter code for all sheets with name beginning for 'D':
Sub Macro2()
Application.ScreenUpdating = False
For Each ws In ThisWorkbook.Sheets
If Sheet.Name Like "D*" Then
With Sheets(mySheetName)
.Range("C8:L107").ClearContents
.Range("C8").Select
End With
End If
Next
MsgBox "All Drawer Files Have Been Deleted, Click OK To Proceed."
Sheets("START").Select
Application.ScreenUpdating = True
End Sub
Regards,
Antonio
Bookmarks