Engineer Joe
Well-known Member
- Joined
- Jun 10, 2005
- Messages
- 549
VBA Code:
For Each sht In ThisWorkbook.Sheets
If sht.Name Like "DHU - *" Then
sht.Visible = xlSheetVisible
End If
Next sht
I've got this code that keeps erroring out on mismatch 13. I'm not sure what's causing it. It gets through the loop like 8 times and then says that "sht" is nothing...and i've still got like 30 sheets to go. Maybe charts are causing it? Any help would be appreciated.