Hi,
I want to delete all sheets with a name length of 5. I'm having problems with the vb syntax for excel. I know it should be something like this.
set wb = ActiveWorkbook
set sht = Sheets
For Each sht in wb
If len(sht.Name) = 5 Then
sht.Delete
End if
Next
Thanks
Dan
I want to delete all sheets with a name length of 5. I'm having problems with the vb syntax for excel. I know it should be something like this.
set wb = ActiveWorkbook
set sht = Sheets
For Each sht in wb
If len(sht.Name) = 5 Then
sht.Delete
End if
Next
Thanks
Dan