- ©«¤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
|
¦^´_ 20# ÂŤÑÄR¦À
shtRTD(RTD) ¤u§@ªí³æ¤º®e¡G- Private Sub Worksheet_Change(ByVal Target As Range)
- ' ·í D2 Äæ¦ì¦³²§°Ê®É¡A «h¥h©I¥s RecordPrice ªº¤èªk (Method)¡C
- If Target.Address = "$C$2" Or Target.Address = "$E$2" Or Target.Address = "$G$2" Or Target.Address = "$I$2" Or _
- Target.Address = "$K$2" Or Target.Address = "$M$2" Or Target.Address = "$O$2" Or _
- Target.Address = "$Q$2" Or Target.Address = "$S$2" Or Target.Address = "$U$2" Then
- Call RecordPrice(Target.Address)
- End If
- End Sub
½Æ»s¥N½X Module1 ¼Ò²Õ¤º®e¡G- Option Explicit
- Sub RecordPrice(TG As String)
- Dim WR As Long
- If Range("A1") < 1 Then Exit Sub
- ' WR = Range("A1").End(xlDown).Row + 1
- WR = Range(TG).End(xlDown).Row + 1 ' ק令¥HIJµo¤§Äæ¦ì¬°§PÂ_°òÂI
- ' ActiveWindow.ScrollRow = WR - 5 ' ¥uÅã¥Ü³Ì·s´Xµ§¸ê®Æ
- Cells(WR, 1).NumberFormatLocal = "hh:mm:ss"
-
- If WR = 3 Then ' Á`¶q¦³²§°Ê®É¤~°O¿ý
- Cells(WR, 1).Resize(, 21) = [A2:U2].Value
- Else
- Cells(WR, 1) = [A2]
- Range(Left(TG, 3) & WR) = Range(TG)
- Range(Left(TG, 3) & WR).Offset(, -1) = Range(TG).Offset(, -1)
- End If
- End Sub
½Æ»s¥N½X |
|