ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ½Ð°Ý¦p¦ó¨Ï¥ÎVBA­pºâ¤è°}

[µo°Ý] ½Ð°Ý¦p¦ó¨Ï¥ÎVBA­pºâ¤è°}

§Ú·Q½Ð°Ý¦³¤@­Ó¨ÒÃD¡A¤w¸g±N¨â¨âªº¤¤¤ß¨D¥X¡A
¨Ò¦p:nµ§¸ê®Æ(A,B)
²Ä¤@µ§¸ê®Æ(5,5)
²Ä¤Gµ§¸ê®Æ(6,6)
¥ý­pºâ±o1¸ò2ªº¤¤¤ß¬°(5.5  ,  5.5)
¦Ó¦b¯x°}¤W¹ï·Ó1¸ò2ªº­pºâ¤½¦¡¬° (²Ä¤@µ§¸ê®ÆA-(12ªºA¥­§¡))^2+(²Ä¤Gµ§¸ê®ÆA-(12ªºA¥­§¡))^2+(²Ä¤@µ§¸ê®ÆB-(12ªºB¥­§¡))^2+(²Ä¤Gµ§¸ê®ÆB-(12ªºB¥­§¡))^2
¤£¬O«Ü·|±Ô­z¡A¤£ª¾¹D³o¼Ë¦³¨S¦³¤ñ¸û²M·¡
ªþ¥ó¤º¬O§Ú¥Î¤â¥´ªº¤è°}¡A¦]¬°ªáªº®É¶¡¤ñ¸ûªø¡A·Q½Ð°Ý¯à§_¥ÎVBAÁYµu®É¶¡
¤è°}.rar (8.64 KB)

¦^´_ 14# lpk187
¦nªº,¨SÃö«Y,«D±`·PÁÂ!!

TOP

¦^´_ 13# linlin00

¤£¦n·N«ä¡IÁÙ¬O¤£À´¡I¥i¯à­n½Ð¨ä¥L¤j¤j¥X¤â¬Û§U¤F

TOP

¦X¨Ö.rar (9.54 KB) ¦^´_ 11# lpk187
«e­±¸ò­ì¥»³£¬Û¦P¥H½s¸¹1¸ò2Á|¨Ò¡A­pºâ±o¨ì¦b³o­Ó¤è°}½d³ò¤¤³Ì¤pªº¬O1¡A·Q­n¶Ç¦^³o­Ó1¬O(1,2)¥H¤Î(3,4)ªº²Õ¦X
¤§«á¬O¥H«e­±±o¨ìªºµ²ªG¦X¨Ö(1,2)¡A­pºâ¤@±i·sªº¤è°}
¦pªþ¥ó¤u§@ªí¤G¤º¡A¥ý±N(1,2)¦X°_¨Ó«á¡A­pºâ(1,2),3´NÅܦ¨
(½s¸¹1.2.3¤À§O-(1,2,3)ªº¥­§¡¼Æ)^2ªºÁ`©M
¤£ª¾¹D³o¼Ë¦³¨S¦³¤ñ¸û²M·¡

TOP

¦^´_ 11# lpk187
¦nªº¡A§Ú¥ý¾ã²z¤@¤U§Ú¤âºâªº³¡¤À

TOP

¦^´_ 10# linlin00


   ¤£¦n·N«ä¡I¤£¬O«ÜÀ´§Aªº·N«ä¡C§Ú¹ïºâ¼Æ¤è­±¤£¬O«Ü¼ô¡I¦pªG¦³¤½¦¡©Îµ²ªG¡A­Ë¥i¥H¸Õ¤@¤U¡I

TOP

¦^´_ 2# lpk187

§Ú¥Ø«e¨Ï¥Î³o¤@­Ó¨Ó¾Þ§@¡A·Q½Ð°Ý¦pªG­n§ä¤è°}½d³ò¤ºªº³Ì¤p­È¨Ã¦^¶Ç¬O­þ¨â­Óªº²Õ¦X¡A¦³¿ìªk°µ¨ì¶Ü?
¤U¤@¨B·Q­n±N³o¤@­Ó³Ì¤p­Èªº¨â²Õ°µµ²¦X¡A±µµÛºâ·sªº¤@­Ó¤è°}

TOP

¦^´_ 8# lpk187
ÁÂÁ¡A³o­Ó³t«×Åܫܧ֡A¦Ó¥B¤]¯à±o¨ì§Ú·Q­nªºµ²ªG¡A¤£¹L¦h¤F¦n¦h§Ú¤£À´ªºªF¦èÁٻݭnªáÂI®É¶¡§l¦¬.....

TOP

¦^´_ 6# linlin00

¤£ª¾¬O¤£¬O§A·Q­nªº
¨ä¹ê¥u¬O§â¥¦¥H°}¦Cªº¤è¦¡¥h¶](°}¦C¤ñ¦bÀx¦s®æ¶]§Ö«Ü¦h)
  1. Public Sub Ex1()
  2. Dim ar1(), ar2()
  3. n = 1
  4. arr = Range("a2:c" & Cells(Rows.Count, 1).End(xlUp).Row) '·íABC¤TÄ橹¤U¼W¥[¸ê®Æ®É·|¦Û°ÊŪ¨ú¦ì¸m
  5. ReDim ar2(1 To UBound(arr) + 1, 1 To UBound(arr) + 1)
  6. ar2(1, 2) = 1
  7. For i = 1 To UBound(arr) - 1
  8.     ar2(1, i + 2) = i + 1
  9.     X = i + 1
  10.     For j = X To UBound(arr)
  11.         ReDim Preserve ar1(1 To 3, 1 To n)
  12.         ar1(1, n) = arr(i, 1) & "," & arr(j, 1)
  13.         ar1(2, n) = (arr(i, 2) + arr(j, 2)) / 2
  14.         ar1(3, n) = (arr(i, 3) + arr(j, 3)) / 2
  15.         ar2(j, 1) = j - 1
  16.         ar2(j + 1, i + 1) = (arr(i, 2) - ar1(2, n)) ^ 2 _
  17.                       + (arr(j, 2) - ar1(2, n)) ^ 2 _
  18.                       + (arr(i, 3) - ar1(3, n)) ^ 2 _
  19.                       + (arr(j, 3) - ar1(3, n)) ^ 2
  20.         n = n + 1
  21.     Next
  22. Next
  23. ar2(j, 1) = i
  24. Range("F2").Resize(UBound(ar1, 2), UBound(ar1, 1)) = Application.Transpose(ar1)
  25. Range("J1").Resize(UBound(ar2, 2), UBound(ar2, 1)) = ar2
  26. End Sub
½Æ»s¥N½X

TOP

¦^´_ 5# linlin00

§ó¥¿¡AKªº³¡¤À°ÝÃD¤w¸g¸Ñ¨M¤F!

TOP

        ÀR«ä¦Û¦b : °µ¸Ó°µªº¨Æ¬O´¼¼z¡A°µ¤£¸Ó°µªº¨Æ¬O·Mè¡C
ªð¦^¦Cªí ¤W¤@¥DÃD