- ©«¤l
- 396
- ¥DÃD
- 12
- ºëµØ
- 0
- ¿n¤À
- 425
- ÂI¦W
- 1
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 2016
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¤¤
- µù¥U®É¶¡
- 2013-7-2
- ³Ì«áµn¿ý
- 2024-8-23
|
¥»©«³Ì«á¥Ñ owen06 ©ó 2014-9-10 12:58 ½s¿è
¦^´_ 11# patrickccs
¦pªG·Q¦b¨ä¥L¤u§@ªí°õ¦æ¥t¤@Ó¤u§@ªíªº¤º®e¡A¨º´Nn¦b«ü¥Oªº½d³ò«e±¡A¥[¤W©ú½Tªºsheet¦WºÙ¡A¤~¤£·|°g¸ô¡C
¨Ò¦p
Private Sub CommandButton1_Click()
sheets("sheet1").[b15:G15].Clear
For Each mr In sheets("sheet1").Range("a2:a" & sheets("sheet1").[a1].End(4).Row)
If mr = sheets("sheet1").[a15] Then
tg = mr.Row
End If
On Error Resume Next
Next
For i = 2 To 7
sheets("sheet1").Cells(15, i) = sheets("sheet1").Cells(tg, i) - sheets("sheet1").Cells(tg - 1, i)
Next
End Sub |
|