¦p¦ó¨Ï¥ÎVBA¼¶¼g¨ç¼Æ¤½¦¡(±N²Å¦XªºÀx¦s®æ¦ì§}¥[¤J¨ç¼Æ¤½¦¡¤¤)-¤w¦Û¦æ¸Ñ¨M
- ©«¤l
- 13
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 25
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- OFFICE 2010
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-8-8
- ³Ì«áµn¿ý
- 2011-10-14
|
¦p¦ó¨Ï¥ÎVBA¼¶¼g¨ç¼Æ¤½¦¡(±N²Å¦XªºÀx¦s®æ¦ì§}¥[¤J¨ç¼Æ¤½¦¡¤¤)-¤w¦Û¦æ¸Ñ¨M
¥»©«³Ì«á¥Ñ MRSA ©ó 2010-11-21 19:23 ½s¿è
°²©w A1 ~ A30 Äæ¦ì¤¤, A3,A11,A28 ¤TÓÄæ¦ìªº¼ÆȬ° m, §Ún¦bD2Äæ¦ì¸Ì,¥HVBA²£¥Í¤@Ó "=A3+A11+A28" ªº¤½¦¡
¥Ñ©ó m ¼ÆÈ·|¦bA1~A30¤ºÅÜ°Ê(¤£¨£±o¨C¦¸³£·|¦b¬Û¦PÄæ¦ì¸Ì). §Ún¦p¦ó¼¶¼gVBA»yªkÅý¥¦¦Û°Ê§PÂ_²Å¦XªºÄæ¦ì,¨Ã¦bD2Äæ¦ì¸Ì²£¥Í¹ïÀ³ªº¥[Á`¤½¦¡. |
|
|
|
|
|
|
- ©«¤l
- 13
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 25
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- OFFICE 2010
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-8-8
- ³Ì«áµn¿ý
- 2011-10-14
|
¦p¦ó¨Ï¥ÎVBA¼¶¼g¨ç¼Æ¤½¦¡(±N²Å¦XªºÀx¦s®æ¦ì§}¥[¤J¨ç¼Æ¤½¦¡¤¤)-¤w¦Û¦æ¸Ñ¨M
Range("G1").Value = "="
Range("A1").Select
If ActiveCell.Value = "m" Then
o2 = ActiveCell.Address
o3 = Range("G1").value
Range("G1").value = o3 + o2
Selection.Offset(1).Select
Else: Selection.Offset(1).Select
End If
For i2 = 1 to 29
If ActiveCell.Value = "m" Then
o5 = ActiveCell.Address
o6 = Range("G1").Formula
Range("G1").value = o6 + "+" + o5
Selection.Offset(1).Select
End If
Next i2 |
|
|
|
|
|
|