- ©«¤l
- 365
- ¥DÃD
- 40
- ºëµØ
- 0
- ¿n¤À
- 406
- ÂI¦W
- 0
- §@·~¨t²Î
- Win 7
- ³nÅ骩¥»
- OFFICE 2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2012-12-11
- ³Ì«áµn¿ý
- 2024-8-24
|
¦^´_ 6# c_c_lai
C¤j§Ú¤]¦³½Ð±Ð¥L¡A¥t¥~
Private Sub Worksheet_Calculate()
Application.EnableEvents = False.............©Ò¥H¬O¥[¦b³oÃä
Call RecordPrice
Application.EnableEvents = True..............ÁÙ¦³³oÃä¶Ü??
End Sub
..............................................................................................................................................................................
Sub RecordPrice()
Dim WR As Long
Dim I As Byte
If Range("E2") < 1 Then Exit Sub
WR = Range("A1").End(xlDown).Row + 1
If (WR = 3) Or _
((Second(Range("A2")) Mod 5) = 1) Then
Application.EnableEvents = False.................³oÃä
Cells(WR, 1).Resize(, 4) = [A2:D2].Value
Application.EnableEvents = True...................ÁÙ¦³³oÃä
End If
End Sub
¥[¦b¤W±³o¨âÓ¦a¤è¦³¬Æ»ò¤£¦P?? |
|