°£¤F¨Ï¥Îon error resume next, ¦p¦ó¤£Åã¥Ü¿ù»~
- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
        
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2012-7-3 15:03 ½s¿è
¦^´_ 1# 2# enoch - Option Explicit
- Private Sub Worksheet_Change(ByVal Target As Range)
- Dim xlrow As Integer, xlLook As Variant
- If Target.Column <> 2 Then Exit Sub
- xlrow = Target.Row
- If Cells(xlrow, "A") <> "" Then
- 'xlLook = Application.WorksheetFunction.VLookup(Cells(xlrow, "B"), [data], 1, False)
- '¨Ï¥Î¤u§@ªí¨ç¼Æ Application.WorksheetFunction ¦p¶Ç¦^¿ù»~È ¨t²Î·|¦^À³°õ¦æ¤Wªº¿ù»~¤¤¬qµ{¦¡
- xlLook = Application.VLookup(Cells(xlrow, "B"), [data], 1, False)
- '¦ý¤£¥[¤WWorksheetFunction ¦p¶Ç¦^¿ù»~È ¨t²Î¤£·|¦^À³°õ¦æ¤Wªº¿ù»~
- '¦ýÅܼƫ¬ºA »Ý³]¬° Variant
- Cells(xlrow, "D") = IIf(Not IsError(xlLook), xlLook, "§ä¤£¨ì")
- End If
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|