sheet names are sheettest,save,sheettest2.
MyArray(2) is Dog
set two watches to make sure that is what is being seen.
fig is set to false
fig becomes true even though it never finds a sheet called Dog.
can someone see why????????
For Each WS In Worksheets
If WS.Name Like MyArray(2) Then flg = True: Exit For
Next
If flg = True Then
DirectCopyInfo = True
'do nothing
Else
Sheets.Add.Name = MyArray(2)
DirectCopyInfo = False
End If
This article of mine may help you. It's aimed at VB6 but most of it allies to VBA.