Application.Sum(Sheet.[g10:g20]) ¸Ì±ªºSheet ¥i¥Î¥N½X¨ú¥N¶Ü¡H
- ©«¤l
- 112
- ¥DÃD
- 19
- ºëµØ
- 0
- ¿n¤À
- 136
- ÂI¦W
- 0
- §@·~¨t²Î
- window
- ³nÅ骩¥»
- excel
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-3-12
- ³Ì«áµn¿ý
- 2022-11-29
|
Application.Sum(Sheet.[g10:g20]) ¸Ì±ªºSheet ¥i¥Î¥N½X¨ú¥N¶Ü¡H
¤j¤j¦n¡A
½Ð°Ý¡A°²³]§Ú¦³¤Q±iSheet¡A¤À§O¬°Sheet1, Sheet2... Sheet10¡A
¦Ó§Ú¦³¿ìªk±NSum ¸Ì±ªº Sheet ¦WºÙ§ï¥Î¥N½X¨ú¥N¶Ü¡H
¨Ò¦p,
For DQ=1 To 10
Application.Sum(DQ[g10:g20])
Next
½Ð°Ý¥H¤Wªº¼gªk¥i¦æ¶Ü¡H
ÁÂÁÂ |
|
|
|
|
|
|
- ©«¤l
- 112
- ¥DÃD
- 19
- ºëµØ
- 0
- ¿n¤À
- 136
- ÂI¦W
- 0
- §@·~¨t²Î
- window
- ³nÅ骩¥»
- excel
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-3-12
- ³Ì«áµn¿ý
- 2022-11-29
|
ÁÂÁªO¥D¡A¥i¥H¤F¡A³Ì«á¤@¥y
Worksheets(DQ).Range("a"& Address1).value=A
À³¸Ó§ï¬°
Worksheets(DQ).Range("a"& Address1).value=Application.Sum(A)
©Ò¥H¾ã¬qÀ³¸Ó¬O
Sub Ex()
Dim DQ As Integer, A As Range, Address1 as Integer
Address1=1
For DQ = 1 To 10 '¤u§@ªí¯Á¤Þ 1 TO 10
Windows("file1.xls").Activate
Set A = Worksheets(DQ).Range("a1:a10")
MsgBox Application.Sum(A)
Windows("file2.xls").Activate
Worksheets(DQ).Range("a"& Address1).value=Application.Sum(A)
Next
End Sub |
|
|
|
|
|
|
- ©«¤l
- 112
- ¥DÃD
- 19
- ºëµØ
- 0
- ¿n¤À
- 136
- ÂI¦W
- 0
- §@·~¨t²Î
- window
- ³nÅ骩¥»
- excel
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-3-12
- ³Ì«áµn¿ý
- 2022-11-29
|
|
|
|
|
|
|
¡@¼ÊºÙ: ÀH·ÄÆ¿ºªº¦Ð¤ò ¡@ÀY»Î: [±s¥Î]¼ç¤ô¸¥
°ª¤¤¥Í
- ©«¤l
- 852
- ¥DÃD
- 79
- ºëµØ
- 0
- ¿n¤À
- 918
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows 7 , XP
- ³nÅ骩¥»
- Office 2007, Office 2003,Office 2010,YoZo Office
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¦t©z
- µù¥U®É¶¡
- 2011-4-8
- ³Ì«áµn¿ý
- 2024-2-21
|
ÁÂÁªO¥D¶O¤ß¡A§ä®É¶¡¦A¸Õ¬Ý¬Ý¡C
©Ò¥H§ÚÀ³¸Ó¼g¦¨
Sub Ex()
Dim DQ As Integer, A As Range, Addr ...
cji3cj6xu6 µoªí©ó 2013-4-11 22:19
MsgBox Application.Sum(A) <== ³o¬O¸õ¥X¤@Ó¤p¹ï¸Ü®Ø Åã¥ÜApplication.Sum(A) ªºµ²ªG...
¥i¼g¥i¤£¼g
¼g¤F¬O©p¨ì®ÉÔÁÙn±N¨ºÓ¤p¹ï¸Ü®Ø«ö±¼.. |
|
¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~
¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk
¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM
|
|
|
|
|
- ©«¤l
- 112
- ¥DÃD
- 19
- ºëµØ
- 0
- ¿n¤À
- 136
- ÂI¦W
- 0
- §@·~¨t²Î
- window
- ³nÅ骩¥»
- excel
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-3-12
- ³Ì«áµn¿ý
- 2022-11-29
|
ÁÂÁªO¥D¶O¤ß¡A§ä®É¶¡¦A¸Õ¬Ý¬Ý¡C
©Ò¥H§ÚÀ³¸Ó¼g¦¨
Sub Ex()
Dim DQ As Integer, A As Range, Address1 as Integer
Address1=1
For DQ = 1 To 10 '¤u§@ªí¯Á¤Þ 1 TO 10
Windows("file1.xls").Active
Set A = Worksheets(DQ).Range("a1:a10")
MsgBox Application.Sum(A)
Windows("file2.xls").Active
Worksheets(DQ).Range("a"& Address1).value=A
Next
End Sub
³o¼Ë¹ï¶Ü¡H
¥t¥~¤@ÂI¡A MsgBox ªº¥\¯à¬O¥´¶}¤@Ó¹ï¸Ü®Ø¬O¶Ü¡H
¦bµ{¦¡¤¤¤@©wn¼g¬O¶Ü?
ÁÂÁÂ~ |
|
|
|
|
|
|
- ©«¤l
- 112
- ¥DÃD
- 19
- ºëµØ
- 0
- ¿n¤À
- 136
- ÂI¦W
- 0
- §@·~¨t²Î
- window
- ³nÅ骩¥»
- excel
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-3-12
- ³Ì«áµn¿ý
- 2022-11-29
|
³o¼Ëªº¼gªk¦n¹³©Ç©Çªº¡A
·|·Qn¼g³oÓ¥Dn¬O¦]¬°¨âªºexcel ÀɮסA
n±Na Àɮתº¸ê®Æ ²Ä¤@¶g10 ~G20 ªº©M ¥á¨ìbÀɮתº²Ä¤@¶ªº¬YÓ¦ì¸m¡]°²³]¬Oa1¦n¤F¡^
Ä~Äò·Q·Q¬Ý¡ã |
|
|
|
|
|
|
- ©«¤l
- 112
- ¥DÃD
- 19
- ºëµØ
- 0
- ¿n¤À
- 136
- ÂI¦W
- 0
- §@·~¨t²Î
- window
- ³nÅ骩¥»
- excel
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-3-12
- ³Ì«áµn¿ý
- 2022-11-29
|
¬Ý¨ì2008¦~¦³¤H¼g¹LÃþ¦üªº¼gªk
a = Worksheets("sheet1").Range("a1:a10")
Application.Sum(a)
©Ò¥H§Ú¥i¥H§ï¬°¥H¤U¶Ü¡H
For DQ=1 To 10
a = Worksheets(DQ).Range("g10:g20")
Application.Sum(a)
Next |
|
|
|
|
|
|