I am getting a run time error 13 when I run my loops. I was hoping to figure out why.
I am trying to loop through 8 worksheets that are named Assists_1 through Assists_8.
Once a sheet has information populated in it the name of the sheet is changed to Assists_Name. So once the information is populated the only tabs remaining with the original names are empty so I would like to delete the sheets that don't have information in them.
Tom
I am trying to loop through 8 worksheets that are named Assists_1 through Assists_8.
Once a sheet has information populated in it the name of the sheet is changed to Assists_Name. So once the information is populated the only tabs remaining with the original names are empty so I would like to delete the sheets that don't have information in them.
Tom
Code:
For S = 1 To 8
For Each ws In Workbooks("_Assists.xlt").Worksheets
If ws.Name = "Assists_" & S Then ws.Delete
Next ws
Next S