- ©«¤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 ©ó 2011-10-8 17:14 ½s¿è
¦^´_ 3# av8d
¸Õ¸Õ¬Ý- Private Sub Worksheet_Change(ByVal Target As Range)
- Dim Rng As Range, I As Integer
- With Target
- .Select
- If .Column = 4 Or .Column = 9 Then
- If Cells(.Row, 4) <> "" And Cells(.Row, 9) <> "" Then
- For I = 1 To Cells(Rows.Count, .Column).End(xlUp).Row
- If Cells(I, 4) = Cells(.Row, 4) And Cells(I, 9) = Cells(.Row, 9) And I <> .Row Then
- If Rng Is Nothing Then
- Set Rng = Union(Cells(I, 4), Cells(I, 9))
- Else
- Set Rng = Union(Rng, Cells(I, 4), Cells(I, 9))
- End If
- End If
- Next
- If Not Rng Is Nothing Then
- Set Rng = Union(Rng, Cells(.Row, 4), Cells(.Row, 9))
- Rng.Select
- MsgBox Cells(.Row, 4) & " " & Cells(.Row, 9) & " ¦³«½Æ ?"
- End If
- End If
- End If
- End With
- End Sub
½Æ»s¥N½X |
|