Sub finddate()
myrows = Worksheets("工作表1").Cells(Rows.Count, 1).End(x1down).Row
For i = 2 To myrows
If Year(Cells(i, 1)) = Cells(2, 9).Value And Month(Cells(j, 1)) = Cells(2, 10).Value Then
Cells(2, 12) = Cells(i, 2)
End If
Next
End Sub作者: idnoidno 時間: 2015-4-15 23:26