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

¤£¦P¤u§@ªí§ä¹ï¤ñ¸ê®Æ¡A¤u§@ªí¦WºÙ¤£©T©w

¦^´_ 9# mdr0465

¶i¤@¨B¹B¥Î,½Ð¸Õ°õ¦æ¥H¤U¥N½X:


Option Explicit
Sub Àx¦s®æ»P°}¦C_1() 'ª`·N! ¥ý¶}¤@­Ó·s¤u§@ªí¦A°õ¦æ,¥H§K»~§R­«­n¸ê®Æ
Dim Arr(1 To 3, 1 To 5), Brr, Crr, Drr, i%, j%, A, N%
ActiveSheet.UsedRange.ClearContents
For i = 1 To UBound(Arr)
   For j = 1 To UBound(Arr, 2)
      N = N + 1
      Arr(i, j) = N
   Next
Next
[A1].Resize(UBound(Arr), UBound(Arr, 2)) = Arr
[A1].Resize(UBound(Arr), UBound(Arr, 2)).Select
MsgBox "¥þ³¡Arr°}¦C­È±qÀx¦s®æ[A1]¶}©l¶K¤J­È"

Brr = Range([F1], [A65536].End(xlUp))
For i = 1 To UBound(Brr)
   For j = 2 To UBound(Brr, 2)
      Brr(i, 1) = Brr(i, 1) + Brr(i, j)
   Next
Next
[A6].Resize(UBound(Brr)) = Brr
[A6].Resize(UBound(Brr)).Select
MsgBox "¦bBrr°}¦C²Ä1Äæ¸Ì¥[Á`·í¦C­È«á,±qÀx¦s®æ[A6]¶}©l¶K¤JBrr³¡¤À°}¦C­È" & vbLf & _
       "1+2+3+4+5=15" & vbLf & "6+7+8+9+10=40" & vbLf & "11+12+13+14+15=65"
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 11# Andy2483

Andy ®v¥S,
ÁÂÁ§A­@¤ß«ü¾É©M´£¨Ñ¦³¥Î±Ð§÷µ¹§Ú¤F¸Ñ·í¤¤ªº¹B§@,
²{¦b`«á½ú¤F¸Ñ·í¤¤ªº¹B§@¤F,¸U¤À·PÁ§A:handshake

TOP

¥»©«³Ì«á¥Ñ Andy2483 ©ó 2024-3-6 13:57 ½s¿è

¦^´_ 12# mdr0465

¯Á¤Þ¸¹±q 0¶}©l:


Option Explicit
Sub Àx¦s®æ»P°}¦C_2() 'ª`·N! ¥ý¶}¤@­Ó·s¤u§@ªí¦A°õ¦æ,¥H§K»~§R­«­n¸ê®Æ
Dim Arr(3, 5), i%, j%, N%
ActiveSheet.UsedRange.ClearContents
For i = 1 To UBound(Arr)
   Arr(i, 0) = "¼ÐÃDÄ涵 " & i
   For j = 1 To UBound(Arr, 2)
      If i = 1 Then Arr(0, j) = "¼ÐÃD¦C¶µ " & j
      N = N + 1
      Arr(i, j) = N
   Next
Next
Arr(0, 0) = "Äæ \ ¦C"
[A1].Resize(UBound(Arr) + 1, UBound(Arr, 2) + 1) = Arr
[A1].Resize(UBound(Arr) + 1, UBound(Arr, 2) + 1).Select
MsgBox "¥þ³¡Arr°}¦C­È±qÀx¦s®æ[A1]¶}©l¶K¤J­È"
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 13# Andy2483
Andy ®v¥S,

ÁÂÁ§A±x¤ß´£¨Ñ¦³¥Îªº±Ð§÷¥O§Ú­T¶ë¹y¶}, ±q¦Ó§ó²`¤J²z¸Ñ³o½s½Xªº¹B¥Î,
¦ý¾Ç§Ì¦³¤@­ÓºÃ°Ý¦A·Q¦VAndy ½Ð±Ð, §Ú©ú¥Õ¦P¤@­Ó°ÝÃD¥i¥H¥Î¤£¦P¤è¦¡¥h½s¼g¦P¼Ë³£¥i¥H°µ¥X¦P¼Ëªºµ²ªG
¦ý½Ð°ÝAndy¾Ç¥S¡A¥H§A­Ó¤Hªº¨£¸Ñ¡A§A·|¦b¤°»ò®É¶¡¤~·|¨M©w¨Ï¥Î"Scripting Dictionary" (¦r¨å)
¤°»ò®É¶¡´N¤£¥Î¦Ó¥Î¨ä¥L¤è¦¡¥h½s¼gµ{¦¡©O¡H

ÁÂÁÂ

TOP

¦^´_ 14# mdr0465

¦b¤°»ò®É¶¡¤~·|¨M©w¨Ï¥Î"Scripting Dictionary" (¦r¨å)
1.³B²z­«½Æ.¤£­«½Æ¸ê®Æ
2.ÅÜ°ÊÅܼƤӦh®É,¥H¦r¨åKEY·íÅܼÆ
3.°O¾Ð¦C¸¹®É
4.¬°¤F½m²ß¦r¨å®É,¥ô¦ó±¡ªp³£·Q­n¥Î¦r¨å
5.¨ä¥L
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 15# Andy2483
Andy ®v¥S,
©ú¥Õ¤F,ÁÂÁ§A¨C¤@¦¸³£«Ü¸Ô²Óªº¸ÑÄÀ,
ÁÂÁÂ

TOP

        ÀR«ä¦Û¦b : Ãø¦æ¯à¦æ¡AÃø±Ë¯à±Ë¡AÃø¬°¯à¬°¡A¤~¯àª@µØ¦Û§Úªº¤H®æ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD