- ©«¤l
- 97
- ¥DÃD
- 33
- ºëµØ
- 0
- ¿n¤À
- 129
- ÂI¦W
- 0
- §@·~¨t²Î
- Win 7
- ³nÅ骩¥»
- office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2019-5-7
- ³Ì«áµn¿ý
- 2022-8-25
|
¤w¸Ñ¨M~~
' Application.EnableEvents = False °±¤îIJµo¨Æ¥ó
' Application.EnableEvents = True «·s±Ò°Ê¨Æ¥ó- Private Sub Worksheet_SelectionChange(ByVal Target As Range)
- Dim Sel As Range
- Set Sel = Application.Intersect([K:K], Target)
- If Sel Is Nothing Then GoTo ena
- If Sel.Count > 1 Then GoTo ena
- If [A37].Value <> "" Then
- Range("C39").Value = Range("C3").Value
- Range("I39").Value = Range("I3").Value
- Range("C42").Value = Range("C6").Value
- Range("C43").Value = Range("C7").Value
- Range("I41").Value = Range("I5").Value
- Range("I42").Value = Range("I6").Value
- Range("I43").Value = Range("I7").Value
- Range("I44").Value = Range("I8").Value
- Range("C72").Value = Range("C36").Value
- Range("B69").Value = Range("B33").Value
- End If
- If [F11] = "" Then Exit Sub
- If [F11] <> "" Then Application.MoveAfterReturnDirection = xlToRight
- If Sel.Column = 11 Then
- Application.EnableEvents = False
- Target(2, -4).Select
- End If
- ena:
- Application.EnableEvents = True
- End Sub
- Private Sub Worksheet_Change(ByVal Target As Range)
- Dim SelRng As Range
- Set SelRng = Application.Intersect([F11:J31,F47:J67], Target)
- If SelRng Is Nothing Then GoTo en
- If SelRng.Count > 1 Then GoTo en
- If SelRng & "" = "0" Then
- SelRng = "OK"
- ElseIf SelRng & "" = "." Then
- SelRng = "N/A"
- End If
- en:
- Application.EnableEvents = True
- End Sub
½Æ»s¥N½X |
|