You can do it like this:
Dim ws As Worksheet, wsD as Worksheet
For Each ws In TeamINSO.Worksheets
'see if there's a match
On Error Resume Next 'ignore error if no match
Set wsD = ThisWorkbook.Sheets(ws.Name)
On Error Goto 0 'stop ignoring errors
'any match?
If Not wsD Is Nothing Then
'Transfer values
With ws.Range("A3:C400")
wsD.Range("A2").Resize(.Rows.Count, .Columns.Count).Value = .Value
End With
End If
Set wsD = Nothing 'set up for next iteration if any
Next ws
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…