- ©«¤l
- 175
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 207
- ÂI¦W
- 274
- §@·~¨t²Î
- WIN 10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2011-6-30
- ³Ì«áµn¿ý
- 2024-11-21
|
¥»©«³Ì«á¥Ñ infoverdad ©ó 2011-7-18 22:25 ½s¿è
¦^´_ 2# GBKEE
ÁÂÁÂGBKEEª©¤j,¯u¬O¤Ó´Î¤F!! ¥¦¤£¦ý§ó²¼ä,¤]¸Ñ¨M¤F§Ú¤§«e¦]À³¥Î»Ýn,¶·³v¤@קï©w¸q¦WºÙªº³Â·Ð!!
¤£¹L¬°ÁקKקïÄæ¦W¡A¦ÓP¥t¤@ÄæÄæ¦WÅܪťÕ, ÁÙ¬On¨Ï¥ÎexitHandler¨Ó³B²z¥¦. ©Ò¥H§Ú§âµ{¦¡½Xµy·Lקï¤F¤@¤U,³o¼Ë§Ú¥¼¨Ó¦b¤u§@¤W´N¥i¥H¦h¦hµ½¥Î¥¦¤F!!- Option Explicit
- Private Sub Worksheet_Change(ByVal Target As Range)
- Dim wsLists As Worksheet, Rng As Range
- On Error GoTo errHandler
- If Target.Count > 1 Then Exit Sub
- Set wsLists = Worksheets("Lists")
- Application.EnableEvents = False
-
- If Target.Column = 2 Then
- Set Rng = wsLists.Range("A:A").Find(Target, LookAt:=xlWhole, MatchCase:=True)
- With Target.Offset(0, 1)
- If Not Rng Is Nothing Then .Value = Rng.Offset(0, 1).Value Else: GoTo exitHandler
- End With
-
- ElseIf Target.Column = 3 Then
- Set Rng = wsLists.Range("B:B").Find(Target, LookAt:=xlWhole, MatchCase:=True)
- With Target.Offset(0, -1)
- If Not Rng Is Nothing Then .Value = Rng.Offset(0, -1).Value Else: GoTo exitHandler
- End With
- End If
- Application.EnableEvents = True
-
- exitHandler:
- Application.EnableEvents = True
- Exit Sub
- errHandler:
- MsgBox Err.Number & ": " & Err.Description
- GoTo exitHandler
-
- End Sub
½Æ»s¥N½X |
|