Sub 查尋()
Sheet1.[B4].ClearContents
X = Sheet2.[b65536].End(xlUp).Row
For M = 2 To X
If Sheet2.Cells(M, 1) = Sheet1.Cells(4, 1) Then
Sheet1.Cells(4, 2) = Sheet2.Cells(M, 2)
Y = Y + 1
End If
Next
End Sub
Sub 修改儲存()
X = Sheet2.[b65536].End(xlUp).Row
For M = 2 To X
If Sheet2.Cells(M, 1) = Sheet1.Cells(4, 1) Then
Sheet2.Cells(M, 2) = Sheet1.Cells(4, 2)
Y = Y + 1
End If
Next
End Sub作者: caimy 時間: 2016-2-26 08:32