- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
¦^´_ 3# ÂŤÑÄR¦À
ThisWorkbook:- Private Sub Workbook_Open()
- Dim rng As Variant
-
- With Sheets(1)
- For Each rng In Range(.[D2], .[D2].End(xlDown))
- rng.Offset(, 26) = IIf(IsNumeric(rng), rng, 0)
- rng.Offset(, 1) = IIf(IsNumeric(rng.Offset(, -1)), rng.Offset(, -1), 0)
- Next
- End With
- End Sub
½Æ»s¥N½X Sheet1:- Private Sub Worksheet_Change(ByVal Target As Range)
- If Left(Target.Address, 2) = "$D" And IsNumeric(Target) Then
- If Target.Offset(, 26).Value <> Target.Value Then
- Target.Offset(, 26) = Target
- Target.Offset(, 2) = Target.Offset(, 1)
- Target.Offset(, 1) = IIf(IsNumeric(Target.Offset(, -1)), Target.Offset(, -1), 0)
- End If
- End If
- End Sub
½Æ»s¥N½X
¸ê®Æ¼È¦s.rar (61.05 KB)
|
|