- ©«¤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
|
¦^´_ 60# ÂŤÑÄR¦À
ªÑ²¼10¡G
shtRTD(RTD) ¤u§@ªí³æ¤º®e¡G- Private Sub Worksheet_Change(ByVal Target As Range)
- ' ·í Target (Á`¶q) Äæ¦ì¦³²§°Ê®É¡A «h¥h©I¥s RecordPrice ªº¤èªk (Method)¡C
-
- If Target.Row = 2 And Target.Column Mod 4 = 0 Then
- Call RecordPrice(Target.Address)
- End If
- End Sub
½Æ»s¥N½X Module1 ¼Ò²Õ¤º®e¡G- Sub RecordPrice(TG As String)
- Dim WR As Long
-
- If Range("A1") < 1 Then Exit Sub
- ' ActiveWindow.ScrollRow = WR - 5 ' ¥uÅã¥Ü³Ì·s´Xµ§¸ê®Æ
-
- WR = Range(Left(TG, Len(TG) - 1) & Rows.Count).End(xlUp).Row + 1 ' ¨D¨ú¸Ó²§°ÊÄæ¦ìªº³Ì«á¤@µ§¬ö¿ý¦C¦ì¸m
-
- Range(Left(TG, Len(TG) - 1) & WR).Offset(, -3).NumberFormatLocal = "hh:mm:ss" ' ³]©wÀx¦s®æ®æ¦¡ (®É¶¡)
-
- Range(Left(TG, Len(TG) - 1) & WR) = Range(TG) ' ¥i³B¸Ì¨ì AA ¥H«áªºÄæ¦ì (Á`¶q)
- Range(Left(TG, Len(TG) - 1) & WR).Offset(, -1) = Range(TG).Offset(, -1) ' ¥i³B¸Ì¨ì AA ¥H«áªºÄæ¦ì (¦¨¥æ)
- Range(Left(TG, Len(TG) - 1) & WR).Offset(, -3) = Range(TG).Offset(, -3) ' ¼g¤J²§»ù®É¶¡ (®É¶¡)
- End Sub
- Sub ®É¶¡()
- Dim i As Integer
-
- For i = 1 To 400 Step 4
- Cells(2, i) = WorksheetFunction.Text(Now(), "hh:mm:ss")
- Next i
-
- Application.OnTime Now() + TimeValue("00:00¡G01"), "®É¶¡"
- End Sub
- Sub Cls()
- Range("A3:OK5000").ClearContents
- Range("A3").Select
- End Sub
½Æ»s¥N½X |
|