- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 256
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-26
|
¥»©«³Ì«á¥Ñ Hsieh ©ó 2011-4-5 10:24 ½s¿è
¦^´_ 3# ©P¤j°¶ - Private Sub Worksheet_Change(ByVal Target As Range)
- Application.EnableEvents = False
- If Target(1).Column = 1 Then
- For Each a In Target
- r = Application.Match(a, Sheets("Sheet1").[D:D], 0)
- If IsNumeric(r) Then
- a.Offset(, 1).Resize(, 2) = Sheets("Sheet1").Cells(r, 5).Resize(, 2).Value
- End If
- Next
- End If
- If Target(1).Column = 7 Then
- For Each a In Target
- If IsDate(a) Then a.Offset(, 1) = DateDiff("yyyy", a, Date)
- Next
- End If
- Application.EnableEvents = True
- End Sub
½Æ»s¥N½X |
|