- ©«¤l
- 396
- ¥DÃD
- 12
- ºëµØ
- 0
- ¿n¤À
- 425
- ÂI¦W
- 1
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 2016
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¤¤
- µù¥U®É¶¡
- 2013-7-2
- ³Ì«áµn¿ý
- 2024-8-23
|
¦^´_ 4# sheau-lan
³o¼Ë©O¡H- Private Sub Worksheet_Change(ByVal Target As Range)
- On Error GoTo 99
- Dim TG As Range
- With Target
- If .Row >= 3 And .Column = 1 Then
- If .Value = "" Then
- 98: .Offset(0, 2) = ""
- .Offset(0, 3) = ""
- .Offset(0, 5) = ""
- .Offset(0, 6) = ""
-
- Else: Set TG = Sheet3.[H3:H9999].Find("*" & .Value & "*", , , xlWhole)
- If TG Is Nothing Then GoTo 98
- .Offset(0, 2) = TG.Offset(0, -6).Value
- TG2 = .Offset(0, 2).Value
- .Offset(0, 3) = TG.Offset(0, -3).Value
- .Offset(0, 5) = Application.VLookup(TG2, Sheet2.[A4:E9999], 5, False)
- If IsError(.Offset(0, 5).Value) Then .Offset(0, 5) = ""
- .Offset(0, 6) = TG.Offset(0, 1).Value
- End If
- End If
- End With
- 99
- End Sub
½Æ»s¥N½X |
|