- ©«¤l
- 2
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 3
- ÂI¦W
- 0
- §@·~¨t²Î
- win 7
- ³nÅ骩¥»
- ±M·~ª©
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2015-9-24
- ³Ì«áµn¿ý
- 2015-9-24
|
«¶Kµ{¦¡½X- Sub AllCol(theArray As Variant, ColNum As Integer, ByRef mArr() As Double) '¶Ç¤J¤Gºû°}¦C¡A¶Ç¥X¤@ºû°}¦C
-
- Dim s, j
-
- s = 0 'ªì©l¤Æs
- For j = 1 To UBound(theArray, 1) '¸Ó¤Gºû°}¦Cªº¦C¼Æ(«D¦æ¼Æ)¤W
-
- ReDim Preserve mArr(s) '«·s©w¸q¤@ºû°}¦C¤j¤p
-
- mArr(s) = theArray(j, ColNum)
- s = s + 1
- Next j
-
- End Sub
-
- Sub Ellipse1_Click()
-
- Dim T() As Variant
- Dim A() As Double
- Dim B() As Double
-
- Dim i, j
-
- T = Range("A1:D5461")
-
- Call AllCol(T, 1, A) '«ü©w¤Gºû°}¦CTªº²Ä1¦æ¬°¤@ºû°}¦CA
-
- For i = 0 To UBound(A)
- ReDim Preserve B(i)
- B(i) = (-1) * A(i)
- Next i
- '¦¹for°j°é§@¥Î¡G±N¤@ºû°}¦CAÂন[-A]
-
- Range("H1") = UBound(B) '±N¤@ºû°}¦CBªºÓ¼Æ¦L¦bH1Àx¦s®æ
- Range("H2") = B(UBound(B)) '±N¤@ºû°}¦CBªº³Ì¥½¤¸¯À¦L¦bH2Àx¦s®æ
- Range("H3") = Application.WorksheetFunction.Max(B) '±N¤@ºû°}¦CBªº³Ì¤jȦL¦bH3Àx¦s®æ
-
- End Sub
½Æ»s¥N½X |
|