¤£¦P¤u§@ªí§ä¹ï¤ñ¸ê®Æ¡A¤u§@ªí¦WºÙ¤£©T©w
- ©«¤l
- 1446
- ¥DÃD
- 40
- ºëµØ
- 0
- ¿n¤À
- 1470
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Excel 2010 & 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2020-7-15
- ³Ì«áµn¿ý
- 2024-10-21
|
¦^´_ 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
|
|
|
|
|
- ©«¤l
- 163
- ¥DÃD
- 45
- ºëµØ
- 0
- ¿n¤À
- 246
- ÂI¦W
- 27
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- ie
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-7-8
- ³Ì«áµn¿ý
- 2024-9-14
|
¦^´_ 11# Andy2483
Andy ®v¥S,
ÁÂÁ§A@¤ß«ü¾É©M´£¨Ñ¦³¥Î±Ð§÷µ¹§Ú¤F¸Ñ·í¤¤ªº¹B§@,
²{¦b`«á½ú¤F¸Ñ·í¤¤ªº¹B§@¤F,¸U¤À·PÁ§A:handshake |
|
|
|
|
|
|
- ©«¤l
- 1446
- ¥DÃD
- 40
- ºëµØ
- 0
- ¿n¤À
- 1470
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Excel 2010 & 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2020-7-15
- ³Ì«áµn¿ý
- 2024-10-21
|
¥»©«³Ì«á¥Ñ 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
|
|
|
|
|
- ©«¤l
- 163
- ¥DÃD
- 45
- ºëµØ
- 0
- ¿n¤À
- 246
- ÂI¦W
- 27
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- ie
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-7-8
- ³Ì«áµn¿ý
- 2024-9-14
|
¦^´_ 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
ÁÂÁÂ |
|
|
|
|
|
|
- ©«¤l
- 1446
- ¥DÃD
- 40
- ºëµØ
- 0
- ¿n¤À
- 1470
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Excel 2010 & 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2020-7-15
- ³Ì«áµn¿ý
- 2024-10-21
|
¦^´_ 14# mdr0465
¦b¤°»ò®É¶¡¤~·|¨M©w¨Ï¥Î"Scripting Dictionary" (¦r¨å)
1.³B²z«½Æ.¤£«½Æ¸ê®Æ
2.ÅÜ°ÊÅܼƤӦh®É,¥H¦r¨åKEY·íÅܼÆ
3.°O¾Ð¦C¸¹®É
4.¬°¤F½m²ß¦r¨å®É,¥ô¦ó±¡ªp³£·Qn¥Î¦r¨å
5.¨ä¥L |
|
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y
|
|
|
|
|
- ©«¤l
- 163
- ¥DÃD
- 45
- ºëµØ
- 0
- ¿n¤À
- 246
- ÂI¦W
- 27
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- ie
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-7-8
- ³Ì«áµn¿ý
- 2024-9-14
|
¦^´_ 15# Andy2483
Andy ®v¥S,
©ú¥Õ¤F,ÁÂÁ§A¨C¤@¦¸³£«Ü¸Ô²Óªº¸ÑÄÀ,
ÁÂÁÂ |
|
|
|
|
|
|