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

³]­p¤@­Ó°}¦C¬Û¥[¥i¬O±o¨ìªº­È¤@ª½¬O#VALUE

³]­p¤@­Ó°}¦C¬Û¥[¥i¬O±o¨ìªº­È¤@ª½¬O#VALUE

Function Madd(A As Variant, B As Variant)
Dim MC() As Variant
ReDim MC(LBound(A, 1) To UBound(A, 1), LBound(A, 2) To UBound(A, 2))
For i = LBound(A, 1) To UBound(A, 1)
For j = LBound(A, 2) To UBound(A, 2)
MC(i, j) = A(i, j) + B(i, j)
Next j
Next i
Madd = MC
End Function

¤W­±¬O§Úªº¨ç¼Æ
¦Ó§Ú¦bªí³æ¿é¤J{=Madd(A1:B2),(C1:D2))}----¦³¨Ï¥Îctrl+shifu+enter
¤j·§¬O³o¼Ë

½Ð°Ý¬°¤°»ò§ÚŪ¤£¨ìA,Bªº­È©O

½Ð¤j®aÀ°À°¦£ ·PÁÂ
¤j®a¦n~

¦^´_ 1# s100310424


Function Madd(A1 As Variant, B1 As Variant)
Dim MC() As Variant,A,B
A=A1.value : B=B1.value
ReDim MC(LBound(A, 1) To UBound(A, 1), LBound(A, 2) To UBound(A, 2))
For i = LBound(A, 1) To UBound(A, 1)
For j = LBound(A, 2) To UBound(A, 2)
MC(i, j) = A(i, j) + B(i, j)
Next j
Next i
Madd = MC
End Function

TOP

¦^´_ 1# s100310424

©ÎªÌ¡G
  1. Function Madd(A As Variant, B As Variant)
  2. Dim MC() As Variant
  3. A = A.Value: B = B.Value
  4. ReDim MC(LBound(A, 1) To UBound(A, 1), LBound(A, 2) To UBound(A, 2))
  5. For i = LBound(A, 1) To UBound(A, 1)
  6.     For j = LBound(A, 2) To UBound(A, 2)
  7.         MC(i, j) = A(i, j) + B(i, j)
  8.     Next j
  9. Next i
  10. Madd = MC
  11. End Function
½Æ»s¥N½X

TOP

¦^´_ 3# Scott090

ÁÂÁ§A~~~ ¥i¥H°Ê§@¤F¡A¤ß·P®¦
¤j®a¦n~

TOP

        ÀR«ä¦Û¦b : ¡i¥Í©R¦b©I§l¶¡¡j¦òªû»¡¡G¡u¥Í©R¦b©I§l¶¡¡C¡v¤HµLªkºÞ¦í¦Û¤vªº¥Í©R¡A§óµLªk¾×¦í¦º´Á¡AÅý¦Û¤v¥Ã¦í¤H¶¡¡C¬JµM¥Í©R¥h¨Ó³o»òµL±`¡A§Ú­Ì§óÀ³¸Ó¦n¦n¦a·R±¤¥¦¡B§Q¥Î¥¦¡B¥R¹ê¥¦¡AÅý³oµL±`¡BÄ_¶Qªº¥Í©R¡A´²µo¥¦¯uµ½¬üªº¥ú½÷¡A¬M·Ó¥X¥Í©R¯u¥¿ªº»ù­È¡C
ªð¦^¦Cªí ¤W¤@¥DÃD