- ©«¤l
- 319
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 309
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- 2k
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-6-24
- ³Ì«áµn¿ý
- 2024-4-27
|
§ï¦¨³o¼Ë
Sub RecordPrice()
Dim WR As Long
Dim I As Byte
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¿ý
Excel.Application.EnableEvents = 0
Cells(WR, DDE_Á`¶q.Column).Offset(, -1).Resize(, 3).Value = _
DDE_Á`¶q.Offset(, -1).Resize(, 3).Value
Excel.Application.EnableEvents = 1
End If
End Sub |
|