Dim
wb
As
Workbook, wq
As
Object
Dim
ws, wi
As
Worksheet, datDatum
Dim
w
As
Long
, I
As
Long
, t
As
Long
Dim
DefaultMsgBox()
Dim
r, i
As
Integer
For
r = 2
To
2000
Check =
True
:
For
i = 1
To
90
If
ws.Range(
"A"
& r).Value = wp.Sheets(
"ABC"
).Range(
"A"
& i).Value
Then
wp.Sheets(
"ABC"
).Rows(i).Columns(
"E:AB"
).Copy
ws.Range(
"G"
& r).PasteSpecial
GoTo
NextR
End
If
Next
i
For
i = 1
To
90
If
ws.Range(
"B"
& r).Value = wp.Sheets(
"ABC"
).Range(
"B"
& i).Value
Then
wp.Sheets(
"ABC"
).Rows(i).Columns(
"E:AB"
).Copy
ws.Range(
"G"
& r).PasteSpecial
GoTo
NextR
End
If
Next
i
For
i = 1
To
90
If
ws.Range(
"C"
& r).Value = wp.Sheets(
"ABC"
).Range(
"C"
& i).Value
And
ws.Range(
"D"
& r).Value = wp.Sheets(
"ABC"
).Range(
"D"
& i).Value
Then
wp.Sheets(
"ABC"
).Rows(i).Columns(
"E:AB"
).Copy
ws.Range(
"G"
& r).PasteSpecial
GoTo
NextR
End
If
Next
i
NextR:
If
Not
Check = ws.Range(
"A"
& r).Value = wp.Sheets(
"ABC"
).Range(
"A"
& i).Value
Or
Not
Check = ws.Range(
"B"
& r).Value = wp.Sheets(
"ABC"
).Range(
"A"
& i).Value
Or
Not
Check = ws.Range(
"C"
& r).Value = wp.Sheets(
"ABC"
).Range(
"C"
& i).Value
And
ws.Range(
"D"
& r).Value = wp.Sheets(
"ABC"
).Range(
"D"
& i).Value
Then
MsgBox
"......"
End
If
Next
r
End
sub