jayefaye
春芽
共回答了21个问题采纳率:81% 举报
Sub ddd()
Dim i,a,m As Integer
Application.ScreenUpdating = False
Sheets("Sheet1").Select
a = Range("a65536").End(xlUp).Row
m = 0
For i = 1 To a
If Sheets("Sheet1").Cells(i,1) = Sheets("Sheet2").Cells(1,1) And Sheets("Sheet1").Cells(i,6) = Sheets("Sheet2").Cells(2,2) Then
Sheets("Sheet1").Cells(i,11) = Sheets("Sheet2").Cells(3,2)
m = 1
End If
Next
Sheets("Sheet2").Select
Application.ScreenUpdating = True
If m = 0 Then MsgBox "查找替换失败"
End Su
1年前
6