- ©«¤l
- 320
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 310
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- 2k
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-6-24
- ³Ì«áµn¿ý
- 2024-12-21
|
¤£¤£, §Ú¤£¼F®`, ³oÓ¨ä¥L¤j¤j³£ª¾¹D, ¥L̦£¦Ó¤w
Sub RecordPrice()
Dim WR As Long
Dim I As Byte
Excel.Application.EnableEvents = 0
Dim DDE_Á`¶q As Range
Set DDE_Á`¶q = Range("D2")
If IsError(DDE_Á`¶q.Value) Then Exit Sub
If DDE_Á`¶q.Value <= 0 Then Exit Sub
WR = DDE_Á`¶q.CurrentRegion.Row + DDE_Á`¶q.CurrentRegion.Rows.Count
'ActiveWindow.ScrollRow = WR - 5 '¥uÅã¥Ü³Ì·s´Xµ§¸ê®Æ
If (WR = 3) Or _
(Cells(WR - 1, DDE_Á`¶q.Column) <> DDE_Á`¶q.Value) Then 'Á`¶q¦³²§°Ê®É¤~°O¿ý
Cells(WR, DDE_Á`¶q.Column).Offset(, -1).Resize(, 3).Value = _
DDE_Á`¶q.Offset(, -1).Resize(, 3).Value
End If
Excel.Application.EnableEvents = 1
End Sub |
|