- ©«¤l
- 552
- ¥DÃD
- 3
- ºëµØ
- 0
- ¿n¤À
- 578
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-2-8
- ³Ì«áµn¿ý
- 2024-7-9
|
¦^´_ 4# 074063
VBA¬Ò¬O§Q¥Î¨Æ¥ó¨Ó±Ò°Êµ{¦¡ªº¡A©Ò¥H·íµM¥i¥H°µ§Y®É¹Bºâ¡A¥u¬O¬Ý§A¥Î¤°»ò¼Ëªº¨Æ¥ó¨Ó±Ò°Ê½}¤F¡A
§Ú¥H G3=IF(C3="","",C3+F3) ¤U©Ô½Æ»s¤½¦¡ ³oÓ¤½¦¡¨Ó°µ¨Ò¤l¡A¥i¥H§Q¥Î¤u§@ªí¨Æ¥ó"Àx¦s®æÅܧó¨Æ¥ó"¨Ó¹ê²{¦p¤U¦C¤¤ªºµ{¦¡
µ{¦¡»¡©ú¡G·í§A¦bCÄæ©Î«hFÄ檺²Ä3¦C°_¡A¿é¤J¼Æ¦r(ÅܧóÀx¦s®æ¤º®e)´N·|±Ò°Ê³oӨƥó¨Ó¹ê²{§ÚÌnªº¥Øªº¡C
¦ý¥¦¥²¶·©ñ¦b¤u§@ªí¨Æ¥ó襤(¦p¤U¹Ï¨Ò©ñ¸mªº¦ì¸m)- Private Sub Worksheet_Change(ByVal Target As Range)
- If Target.Row > 2 And Target.Column = 6 Or Target.Column = 3 Then'
- If Cells(Target.Row, 3) = "" And Cells(Target.Row, 6) = "" Then'·íCÄæ©ÎFÄæ¬ÒªÅ¥Õ®É
- Cells(Target.Row, "G") = "" '«hGÄ欰ªÅ¥Õ
- Else
- Cells(Target.Row, "G") = Cells(Target.Row, "C") + Cells(Target.Row, "F")'§_«hCÄæ+FÄæ
- End If
- End If
- End Sub
½Æ»s¥N½X
|
|