¦p¦óÅý³Ì·sªº¸ê®Æ³£¼g¦b¤W±??
- ©«¤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
|
¦p¦óÅý³Ì·sªº¸ê®Æ³£¼g¦b¤W±??
ÅÜ°Ê°O¿ý.rar (20.51 KB)
Sub RecordPrice()
Dim WR As Long
Dim I As Long
WR = Range("A1").End(xlDown).Row + 1
[A2] = TimeValue(Now)
For I = 1 To 8
Cells(WR, I) = Cells(2, I)
Next 'I
With ActiveWindow
If Intersect(Cells(WR, "B"), .VisibleRange) Is Nothing Then .SmallScroll 1
End With
End Sub
µ{¦¡½X¦p¤W¡A¥Ø«e¬O³Ì·s¸ê®Æ·|©¹¤U¼g¡A¦pªG§Ún§ï¦¨³Ì·sªº¸ê®Æ³£¥X²{¦bA3Äæ(´N¬O©¹¤W¼g)³oÃäWR = Range("A1").End(xlDown).Row + 1n«ç»ò§ï?? |
|
|
|
|
|
|
- ©«¤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
|
¥»©«³Ì«á¥Ñ c_c_lai ©ó 2015-12-28 19:20 ½s¿è
¦^´_ 5# ÂŤÑÄR¦À - Sub RecordPrice()
- Dim WR As Long
- ' ActiveWindow.ScrollRow = WR - 5 ' ¥uÅã¥Ü³Ì·s´Xµ§¸ê®Æ
- Application.ScreenUpdating = False
- With Sheets("RTD")
- If .Range("H2") < 1 Then Exit Sub
- WR = Range("A1").End(xlDown).Row + 1
- If (WR = 3) Or _
- (.Range("G" & WR - 1) <> .Range("G2")) Then ' Á`¶q¦³²§°Ê®É¤~°O¿ý
- .Rows(3).Insert
- .[A3].Resize(1, 8) = .[A2].Resize(1, 8).Value
- .[A3].Resize(1, 8).Font.FontStyle = "²ÊÅé"
- End If
- End With
- Application.ScreenUpdating = True
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤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
|
¥»©«³Ì«á¥Ñ ÂŤÑÄR¦À ©ó 2015-12-28 14:23 ½s¿è
¦^´_ 3# c_c_lai
C¤j¥i¥H§i¶D§Ú³o¨Çµ{¦¡½Xn¶K¦bþ¸Ì¡AÁÙ¦³¨º¨Ç¦a¤ènקï¶Ü??
¥t¥~¡A¤§«e¦³¨Çµ{¦¡½X¨S¶K¨ì¡A©êºp
¸Ì±ÁÙ¦³G2Åܰʤ~¬ö¿ýªº±ø¥ó
Sub RecordPrice()
Dim WR As Long
Dim I As Byte
If Range("H2") < 1 Then Exit Sub
WR = Range("A1").End(xlDown).Row + 1
'ActiveWindow.ScrollRow = WR - 5 '¥uÅã¥Ü³Ì·s´Xµ§¸ê®Æ
If (WR = 3) Or _
(Range("G" & WR - 1) <> Range("G2")) Then 'Á`¶q¦³²§°Ê®É¤~°O¿ý
For I = 1 To 8
Cells(WR, I) = Cells(2, I)
Next 'I
End If
Application.ScreenUpdating = False
With Sheets("RTD")
.Rows(3).Insert
.[A3].Resize(1, 8) = .[A2].Resize(1, 8).Value
End With
Application.ScreenUpdating = True
End Sub |
|
|
|
|
|
|
- ©«¤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
|
¦^´_ 2# koo
K¤j§Ú¤W¦¸¤Ö¶K¤F¤@¨Çµ{¦¡½X¡A¦pªGÁÙn¥[¤WG2¦³Åܰʤ~¬ö¿ýªº±ø¥ón¦p¦óקï??
WR = Range("A1").End(xlDown).Row + 1
'ActiveWindow.ScrollRow = WR - 5 '¥uÅã¥Ü³Ì·s´Xµ§¸ê®Æ
If (WR = 3) Or _
(Range("G" & WR - 1) <> Range("G2")) Then 'Á`¶q¦³²§°Ê®É¤~°O¿ý
For I = 1 To 8
Cells(WR, I) = Cells(2, I)
Next 'I |
|
|
|
|
|
|
- ©«¤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
|
¥»©«³Ì«á¥Ñ c_c_lai ©ó 2015-12-28 07:48 ½s¿è
¦^´_ 1# ÂŤÑÄR¦À
½Ð°Ñ¦Ò¡G- Application.ScreenUpdating = False
-
- With Sheets("RTD")
- .Rows(3).Insert
- .[A3].Resize(1, 8) = .[A2].Resize(1, 8).Value
- End With
- Application.ScreenUpdating = True
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤l
- 60
- ¥DÃD
- 4
- ºëµØ
- 0
- ¿n¤À
- 64
- ÂI¦W
- 0
- §@·~¨t²Î
- w7-32
- ³nÅ骩¥»
- 2013.2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2014-11-23
- ³Ì«áµn¿ý
- 2016-6-6
|
n³£¦bA3¿é¤J¸ê®Æ´N¥²¶·¼g¤J¸ê®Æ«e´¡¤J¤@¦C
Rows(3).Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
[A2] = TimeValue(Now)
For I = 1 To 8
Cells(3, I) = Cells(2, I)
Next 'I |
|
|
|
|
|
|