ReDim A(1 To UBound(Ar(1), 1), 1 To UBound(Ar(1), 2))
For X = 1 To UBound(Ar(1), 2)
For i = 1 To UBound(Ar(1), 2)
For ii = 1 To UBound(Ar(1), 1)
If ii = 1 Then
A(ii, i) = Ar(X)(ii, i)
Else
A(ii, i) = IIf(A(ii, i) <> "" And Ar(X)(ii, i) <> "", "資料有誤", A(ii, i) & Ar(X)(ii, i))
End If
Next
Next
Next
Workbooks("總表彙整.xls").Sheets(1).Range(Rng) = A
End Sub作者: Jared 時間: 2013-8-2 14:50