tick¸ê®ÆÂà´«¤ÀÄÁ¸ê®Æ(¤w¤U¸ü¸ê®Æ)
- ©«¤l
- 2
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 3
- ÂI¦W
- 0
- §@·~¨t²Î
- win 7
- ³nÅ骩¥»
- excel vba
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2015-3-10
- ³Ì«áµn¿ý
- 2016-2-25
|
tick¸ê®ÆÂà´«¤ÀÄÁ¸ê®Æ(¤w¤U¸ü¸ê®Æ)
§Ú¤w¸g¤U¸ü·í¤Ñ®É¶¡¸ê®Æ¡A
·Q±NTick¦UºØÀW²v¸ê®ÆÂà´«¦¨
1¡N5¡N10¡N30¡N60¤ÀÄÁ¸ê®Æ¡C
¤£ª¾¹D«ç»ò¼gµ{¦¡¶Ü??
³Â·Ð¦U¦ìÀ°À°§Ú~~ |
|
|
|
|
|
|
- ©«¤l
- 2
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 3
- ÂI¦W
- 0
- §@·~¨t²Î
- win 7
- ³nÅ骩¥»
- excel vba
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2015-3-10
- ³Ì«áµn¿ý
- 2016-2-25
|
·PÁ¤j¤j«ü±Ð~~
¦ý¦³¨Çªþ¥óÁÙ¨S¦³Åv¥i¥H°Ñ¦Ò¹ê¦b«ÜÃø¦³ÀYºü¡C
¦b¦³¸ê®Æ®É«Ü¶¶¡A¦ý¦b¨S¸ê®Æ®É...¦p¦ó§ä¤W¤@µ§¸ê®Æ¡C
With Worksheets("1¤ÀÄÁ")
Onerow = .Range("a1048576").End(xlUp).Row
.Range("C2") = Worksheets("TICK").Range("E2")
Findum = Worksheets("TICK").Range("D21048576").Find(.Range("B" & 2)).Row
End With
¦ý¤£¬O¨C¤@¤ÀÄÁ³£¦³¸ê®Æ¡A¹³¬O91200´N§ä¤£¨ì¸ê®Æ¡A¨ºn«ç»ò§ä¨ì¤W¤@µ§¸ê®Æ¡C |
|
|
|
|
|
|
- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 3# ¾Ç¥Í~~
¸Õ¸Õ¬Ý- Option Explicit
- Sub Ex()
- Dim Ar(), i As Integer, Rng As Range
- Ar = Sheets("1¤ÀÄÁ").UsedRange.Columns("B:G").Value
- For i = 2 To UBound(Ar)
- With Sheets("Tick").Columns(4)
- If Not .Find(Ar(i, 1), LookAt:=xlWhole) Is Nothing Then
- .Replace Ar(i, 1) & "", "=aa" '¦P¤@¤ÀÄÁªº®É¶¡´À´«¬°¿ù»~È
- Set Rng = .SpecialCells(xlCellTypeFormulas, xlErrors) '¿ù»~Ȫº½d³ò
- Rng.Value = Ar(i, 1) '¦^´_®É¶¡
- With Rng.Offset(, 1) '¦¨¥æ»ù®æÄæ
- Ar(i, 2) = .Cells(1) '¶}½L»ù(²Ä¤@ÓCell)
- Ar(i, 3) = Application.Max(.Cells) '³Ì°ª»ù
- Ar(i, 4) = Application.Min(.Cells) '³Ì§C»ù
- Ar(i, 5) = .Cells(.Count) '¦¬½L»ù(³Ì«á¤@ÓCell)
- Ar(i, 6) = Application.Sum(Rng.Offset(, 2)) '¦¨¥æ¶q
- End With
- End If
- End With
- Next
- Sheets("1¤ÀÄÁ").UsedRange.Columns("B:G") = Ar
- Ex_¸ê®ÆÂà´«²Îp Sheets("5¤ÀÄÁ"), 5
- Ex_¸ê®ÆÂà´«²Îp Sheets("10¤ÀÄÁ"), 10
- Ex_¸ê®ÆÂà´«²Îp Sheets("30¤ÀÄÁ"), 30
- Ex_¸ê®ÆÂà´«²Îp Sheets("60¤ÀÄÁ"), 60
- End Sub
- Sub Ex_¸ê®ÆÂà´«²Îp(Sh As Worksheet, xTime As Integer)
- Dim Ar(), Rng As Range, i As Integer
- With Sh
- .UsedRange.Columns("C:G").Offset(1) = ""
- Ar = .UsedRange.Columns("B:G").Value
- For i = 2 To UBound(Ar)
- Set Rng = Sheets("1¤ÀÄÁ").Columns("B").Find(Ar(i, 1), LookAt:=xlWhole).Offset(-xTime).Resize(xTime)
- With Rng.Offset(, 1) '¦¨¥æ»ù®æÄæ
- Ar(i, 2) = .Cells(1) '¶}½L»ù(²Ä¤@ÓCell)
- Ar(i, 3) = Application.Max(.Cells) '³Ì°ª»ù
- Ar(i, 4) = Application.Min(.Cells) '³Ì§C»ù
- Ar(i, 5) = .Cells(.Count) '¦¬½L»ù(³Ì«á¤@ÓCell)
- Ar(i, 6) = Application.Sum(Rng.Offset(, 5)) '¦¨¥æ¶q
- End With
- Next
- .UsedRange.Columns("B:G") = Ar
- End With
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|