¦p¦ó¦b«ü©wªº©w¸q¦WºÙ¤º«ü©w½d³ò¥[Á`©O¡H
- ©«¤l
- 231
- ¥DÃD
- 55
- ºëµØ
- 0
- ¿n¤À
- 293
- ÂI¦W
- 0
- §@·~¨t²Î
- winxp
- ³nÅ骩¥»
- office2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- KEELUNG
- µù¥U®É¶¡
- 2010-7-24
- ³Ì«áµn¿ý
- 2018-8-28
|
¦p¦ó¦b«ü©wªº©w¸q¦WºÙ¤º«ü©w½d³ò¥[Á`©O¡H
¦U¦ì¤j¤j¦n¡G
¦b»ä·´Á°Ý¡A¯¬ºÖ¤j®a³£¯à¥¦w¶¶¤ß¡C
¤p§Ì¦³¤@°ÝÃD·Q½Ð°Ý¦b¤@¤u§@ªí¤º«ü©w¤F©w¸q¦WºÙ¬°¡G mySum
¨ä©w¸q¦WºÙ½d³ò¡G range("a1:b8")
³]¦³
a1:a8¤º®e¬°¡G ¦WºÙ,a,b,c,d,e,f,g
b1:b8¤º®e¬°¡G ¼Æ¶q,10,20,30,40,50,60,70
²{n¦b«ü©wªºb9Äæ¦ì¥[Á`b2:b8
½Ð°Ý¨ä¤GºØ»yªk¬°¦ó©O¡H
»yªk¦p¤U¡G
Sub aa()
Dim mSht As Worksheet
Dim mRng As Range
Dim mRng1 As Range
Dim mRng2 As Range
Set mSht = Worksheets(1)
With mSht
Set mRng = .Range("b9")
Set mRng1 = Range("mysum").Cells(2, 2)
'MsgBox mRng1.Address
Set mRng2 = Range("mysum").Cells(8, 2)
'MsgBox mRng2.Address
'mRng.Formula = "=sum(mrng1 &":"& mrng2)" '²Ä¤@ºØ»yªk
'mRng.Formula= "sum(range("mysum").cells(2,2) &":"& range("mysum").cells(8,2)) '²Ä¤GºØ»yªk
End With
End Sub
·PÁ¦U¦ì¤j¤j¡C |
|
|
|
|
|
|
- ©«¤l
- 1572
- ¥DÃD
- 16
- ºëµØ
- 2
- ¿n¤À
- 1521
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2016-1-13
|
a = Range("mysum")(2, 2).Address
b = Range("mysum")(Range("mysum").Count).Address
[b9] = "=sum(" & a & ":" & b & ")" |
|
|
|
|
|
|
- ©«¤l
- 231
- ¥DÃD
- 55
- ºëµØ
- 0
- ¿n¤À
- 293
- ÂI¦W
- 0
- §@·~¨t²Î
- winxp
- ³nÅ骩¥»
- office2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- KEELUNG
- µù¥U®É¶¡
- 2010-7-24
- ³Ì«áµn¿ý
- 2018-8-28
|
ÁÂÁª©¥D¤j¤j¡C
¤p§Ì¤Þ¥Î¤j¤jªº»yªk¤w¹F¦¨¶·¨D¡C
¥Ø«e©|¦b¬ã¨s¬O§_¦³¨ä¥L»yªk¥i¾A¥Î©O¡C
·P®¦ª©¥D¤j¤j¡I |
|
|
|
|
|
|
- ©«¤l
- 128
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 118
- ÂI¦W
- 0
- §@·~¨t²Î
- WinXP
- ³nÅ骩¥»
- Office2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥|¤t¦¨³£ÊT崃
- µù¥U®É¶¡
- 2010-9-13
- ³Ì«áµn¿ý
- 2017-5-12
|
With Range("mySum").Columns(2)
[b9] = Application.Sum(.Value) - .Cells(1, 1)
End With
With Range("mySum").Columns(2)
[b10] = Application.Sum(.Cells(2, 1).Resize(.Rows.Count - 1, 1))
End With |
|
|
|
|
|
|
- ©«¤l
- 1572
- ¥DÃD
- 16
- ºëµØ
- 2
- ¿n¤À
- 1521
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2016-1-13
|
¦A´£¨Ñ¤@Ó»yªk¡G
[b9] = "=Sum(" & Application.Index([MySum], , 2).Address & ")" |
|
|
|
|
|
|
- ©«¤l
- 231
- ¥DÃD
- 55
- ºëµØ
- 0
- ¿n¤À
- 293
- ÂI¦W
- 0
- §@·~¨t²Î
- winxp
- ³nÅ骩¥»
- office2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- KEELUNG
- µù¥U®É¶¡
- 2010-7-24
- ³Ì«áµn¿ý
- 2018-8-28
|
ÁÂÁ¦U¦ì¤j¤j¡C
¤p§Ì·|¦n¦n¬ã¨s¨Ã¥[À³¥Î¡C
·P®¦¦U¦ì¤j¤j¡I |
|
|
|
|
|
|
- ©«¤l
- 1572
- ¥DÃD
- 16
- ºëµØ
- 2
- ¿n¤À
- 1521
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2016-1-13
|
¤@¶}©l¤]·Q³o¼Ë²³æ¨Ç¡A¤£¹L¼Ó¥D¨âÓ»yªk³£¬O¦bÀx¦s®æ¼g¤J¤½¦¡¡A¤~§ï¦¨¤½¦¡¡C |
|
|
|
|
|
|