°Æµ{¦¡/if§PÂ_¤£¨ì/½Ð¨D¸Ñ´b
- ©«¤l
- 10
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 12
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- OFFICE 2010
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¤¤
- µù¥U®É¶¡
- 2013-5-14
- ³Ì«áµn¿ý
- 2014-4-8
|
°Æµ{¦¡/if§PÂ_¤£¨ì/½Ð¨D¸Ñ´b
¥»©«³Ì«á¥Ñ GBKEE ©ó 2013-10-20 16:52 ½s¿è
³o¬O§Úªº¸ê®ÆÀÉ
http://cht.tw/h/nmaeu
·í§Ú¶]µ{¦¡®É¡A¤£ºÞ§Ú¿é¤J¤°»òÈ¡Aµ{¦¡¥Ã»·¶]for a=2 to 486
¨Ã¤£·|¶]§Ú³]©wªºif±ø¥ó¡A§Ú¦³¸ÕµÛ¥Îwhile¶]¦ý·|·í¾÷(¥i¯à¤£¯à³o¼Ë§a)
¤£ª¾¹Dþ¸Ì¥X¿ù¤F¡A§ï¤F«Ü¤[ÁÙ¬O§ï¤£¥X¨Ó¡C
³Â·Ð¤j®vÌÀ°ªì¾ÇªÌ§Ú¤p§Ì¸Ñµª¡A·P¿E¤£¶i |
-
-
°ÝÃD.JPG
(33.84 KB)
|
|
|
|
|
|
- ©«¤l
- 10
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 12
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- OFFICE 2010
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¤¤
- µù¥U®É¶¡
- 2013-5-14
- ³Ì«áµn¿ý
- 2014-4-8
|
¦^´_ 12# c_c_lai
§ÚÀ´¤F «D±`·PÁ§A |
|
§A¦n³á
|
|
|
|
|
- ©«¤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 ©ó 2013-10-22 06:05 ½s¿è
¦^´_ 11# ³Ì°ª¾÷±K
¬Ý¤F¥H¤U¤ÀªR«K¤£·|²V¶Ã¤F¡G- °²³] x¡Ay §Aªº¿é¤JȤÀ§O¬° 20040116¡A20040206
- x = "20040116" (¿é¤JÈ)
- y = "20040206" (¿é¤JÈ)
- [A2]
- Cells(a, 1) = 20040109
- StrComp(Cells(a, 1), x, 1) = -1 ' [A2] < x
- StrComp(y, Cells(a, 1), 1) = 1 ' y > [A2]
- [A3] (±ø¥ó²Å¦X - ¦¨¥ß)
- Cells(a, 1) = 20040116
- StrComp(Cells(a, 1), x, 1) = 0 ' [A3] = x
- StrComp(y, Cells(a, 1), 1) = 1 ' y > [A3]
- [A4] (±ø¥ó²Å¦X - ¦¨¥ß)
- Cells(a, 1) = 20040130
- StrComp(Cells(a, 1), x, 1) = 1 ' [A4] > x
- StrComp(y, Cells(a, 1), 1) = 1 ' y > [A4]
- [A5] (±ø¥ó²Å¦X - ¦¨¥ß)
- Cells(a, 1) = 20040206
- StrComp(Cells(a, 1), x, 1) = 1 ' [A5] > x
- StrComp(y, Cells(a, 1), 1) = 0 ' y = [A5]
- [A6]
- Cells(a, 1) = 20040213
- StrComp(Cells(a, 1), x, 1) = 1 ' [A6] > x
- StrComp(y, Cells(a, 1), 1) = -1 ' y < [A6]
- [A7]
- Cells(a, 1) = 20040220
- StrComp(Cells(a, 1), x, 1) = 1 ' [A7] > x
- StrComp(y, Cells(a, 1), 1) = -1 ' y < [A7]
½Æ»s¥N½X ¼·¶³¨£¤é¤F¶Ü¡H |
|
|
|
|
|
|
- ©«¤l
- 10
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 12
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- OFFICE 2010
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¤¤
- µù¥U®É¶¡
- 2013-5-14
- ³Ì«áµn¿ý
- 2014-4-8
|
¦^´_ 9# c_c_lai
If StrComp(Cells(a, 1), x, 1) >= 0 And StrComp(y, Cells(a, 1), 1) >= 0
§Úè¬d¤F¤@¤UStrComp¨ç¦¡¥Î¨Ó¤ñ¸û¦r¦ê¡A¥BY²Ä¤@ӰѼƤp©ó¡Bµ¥©ó©Î¤j©ó²Ä¤GӰѼƮɡA¨Ì§Ç¦^¶Ç-1¡B0©Î1
StrComp(Cells(a, 1), x, 1) >= 0 ³o¬O«ç»ò§PÂ_ªº ½Ð±Ð¤@¤U.
Cells(a, 1)©M x¤ñ«á´N¦³ÂI¼Ò½k¤F.. |
|
§A¦n³á
|
|
|
|
|
- ©«¤l
- 10
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 12
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- OFFICE 2010
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¤¤
- µù¥U®É¶¡
- 2013-5-14
- ³Ì«áµn¿ý
- 2014-4-8
|
¦^´_ 9# c_c_lai
¤Ó·PÁ§A¤F:victory: ¦¨¥\¤F~ |
|
§A¦n³á
|
|
|
|
|
- ©«¤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
|
¦^´_ luhpro
§Ú¹Á¸Õ¤F¤@¤U¡A§ÚÈÀH«K¿é¤J¡A¤@¼Ë·|´ú¸Õ¥þ³¡ ¦ü¥G¨S¦³§PÂ_¨ìIF
Public x, y
Sub ...
³Ì°ª¾÷±K µoªí©ó 2013-10-21 01:38
²×©ó¤F¸Ñ§A«üªº°ÝÃD¦bþ¸Ì¡A¦r¦ê¤ñ¸û³Ì¦n¨Ï¥Î StrComp() ²[¥Ü¸û©y¡C
§Ú±N If ªº§PÂ_²¾¦Ü¤J¤f³B¡A¤£µM¨C¤@¦¸°j°é³£nµLºÝºt½m 24 ¦¸ (For b = 9 To 32)¡A
½Ð¥þ³¡¶K¦Ü Module1 ©Î 쥻¤§ªí³æ¤º (¥i¥H±N Module1 ¤ºªº Public x,y ²¾°£)
µ{¦¡¬q§Ú³£¤w±N¥¦¹ï¦ì¦n¤F¡A¥H¤è«K°»¿ù»P¾\Äý¡C- Public x, y
- Sub trend()
- x = InputBox("¿é¤J²Ä¤@¤Ñ")
- y = InputBox("¿é¤J³Ì«á¤@¤Ñ")
- If x = "" Or y = "" Then Exit Sub
-
- For a = 2 To 486
- Call aa(a)
- Next a
- End Sub
- Sub aa(ByVal a As Integer)
- If StrComp(Cells(a, 1), x, 1) >= 0 And StrComp(y, Cells(a, 1), 1) >= 0 Then
- For b = 9 To 32
- If Cells(a, b) >= Cells(a - 1, b) Then
- Cells(a, b + 25) = Cells(a + 2, 2) - Cells(a + 1, 2)
- Else
- Cells(a, b + 25) = Cells(a + 1, 2) - Cells(a + 2, 2)
- End If
- c = Cells(a, b + 25)
- D = D + c
- Cells(489, b + 25) = D
- e = Cells(1, b + 25)
- Cells(488, b + 25) = e
- Next
- c = 0
- Cells(1, b + 25) = Cells(1, b)
- End If
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤l
- 10
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 12
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- OFFICE 2010
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¤¤
- µù¥U®É¶¡
- 2013-5-14
- ³Ì«áµn¿ý
- 2014-4-8
|
¦^´_ 6# luhpro
§Ú¹Á¸Õ¤F¤@¤U¡A§ÚÈÀH«K¿é¤J¡A¤@¼Ë·|´ú¸Õ¥þ³¡ ¦ü¥G¨S¦³§PÂ_¨ìIF
Public x, y
Sub trend()
x = InputBox("¿é¤J²Ä¤@¤Ñ")
y = InputBox("¿é¤J³Ì«á¤@¤Ñ")
For a = 2 To 486
Call aa(a)
Next a
End Sub
Sub aa(ByVal a As Integer)
For b = 9 To 32
If x > Cells(a, 1) And Cells(a, 1) <= y Then
If Cells(a, b) >= Cells(a - 1, b) Then
Cells(a, b + 25) = Cells(a + 2, 2) - Cells(a + 1, 2)
Else
Cells(a, b + 25) = Cells(a + 1, 2) - Cells(a + 2, 2)
End If
End If
c = Cells(a, b + 25)
D = D + c
Cells(489, b + 25) = D
e = Cells(1, b + 25)
Cells(488, b + 25) = e
Next
c = 0
Cells(1, b + 25) = Cells(1, b)
End Sub |
|
§A¦n³á
|
|
|
|
|
- ©«¤l
- 10
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 12
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- OFFICE 2010
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¤¤
- µù¥U®É¶¡
- 2013-5-14
- ³Ì«áµn¿ý
- 2014-4-8
|
¦^´_ 6# luhpro
OK §Ú¹Á¸Õ¬Ý¬Ý ÁÂÁ§A |
|
|
|
|
|
|
- ©«¤l
- 835
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 915
- ÂI¦W
- 16
- §@·~¨t²Î
- Win 10,7
- ³nÅ骩¥»
- 2019,2013,2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-3
- ³Ì«áµn¿ý
- 2024-11-14
|
¥»©«³Ì«á¥Ñ luhpro ©ó 2013-10-20 21:18 ½s¿è
¦^´_ 5# ³Ì°ª¾÷±K
§A»~·|¤F.
2# ©Ò»¡ ¶·©ó¥Dµ{¦¡¦¡ªº¼Ò²Õ¤¤ªº³»ºÝ PUBLIC X,Y ³]¬°¤½¥ÎÅÜ¼Æ ·N«ä¬OÅܼÆn¦b Model ¤¤¥H Public ¨Ó©w¸q:
¥H¤Uµ{¦¡©ñ¦b Model ¼Ò²Õ¤¤ :¥t§Aªº If x > Cells(a, 1) <= y Then «hn§ï¬°
If x > Cells(a, 1) And Cells(a, 1) <= y Then
©³¤U¥H§A 1# ªºµ{¦¡¬°¨Òקï :- Sub trend()
- x = InputBox("¿é¤J²Ä¤@¤Ñ")
- y = InputBox("¿é¤J³Ì«á¤@¤Ñ")
- For a = 2 To 486
- Call aa(a)
- Next a
- End Sub
- Sub aa(ByVal a As Integer)
- For b = 9 To 32
- If x > Cells(a, 1) And Cells(a, 1) <= y Then
- Cells(a, b + 25) = Cells(a + 2, 2) - Cells(a + 1, 2)
- Else
- Cells(a, b + 25) = Cells(a + 1, 2) - Cells(a + 2, 2)
- End If
- c = Cells(a, b + 25)
- d = d + c
- Cells(489, b + 25) = d
- e = Cells(1, b + 25)
- Cells(488, b + 25) = e
- Next
- c = 0
- Cells(1, b + 25) = Cells(1, b)
- End Sub
½Æ»s¥N½X
±MÃD½d¥»0917 (§ï)-a.zip (45.87 KB)
|
|
|
|
|
|
|
- ©«¤l
- 10
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 12
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- OFFICE 2010
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¤¤
- µù¥U®É¶¡
- 2013-5-14
- ³Ì«áµn¿ý
- 2014-4-8
|
¦^´_ 4# c_c_lai
·PÁ§Aªº¨ó§U
§Ú¸Õ¹L¤F¡AÁÙ¬O¤@¼Ë¶]¥X¥þ³¡:'(
¥L¨S¦³§PÂ_¨ì@@ |
|
|
|
|
|
|