- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 4# fansofcheer0987
ªþÀÉ Private Sub Worksheet_Calculate()¦bModule3¬O¤@¯ë¼Ò²Õ¤£¬O¤u§@ªí¼Ò²Õ.
·íµM¨S°µ¥Î
ªþÀÉ ¤u§@ªía,¥i¯à¦³¦hµ§n°O¿ý
קï¦p¤U- Private Sub Worksheet_Calculate() '¤u§@ªí1(a)¼Ò²Õªº«ºâ¨Æ¥ó
- Dim i As Long, Sht2 As Worksheet
- Set Sht2 = Sheets("b")
- For i = 2 To Cells(Rows.Count, "h").End(xlUp).Row '¦hµ§n°O¿ý
- If Not IsError(Range("h" & i)) Then '¥¼¶}½L®É RTD¤½¦¡¶Ç¦^ "N/A" ¬°¿ù»~È
- If Range("h" & i) > Cells(i, Columns.Count) And IsNumeric(Range("h" & i)) Then '¶}½L«á,Á`¶q»Ý¦³ >0 ªº¼Æ¦r
- '** »²§UÄæ: Cells(i, Columns.Count)** ¤u§@ªí³Ì¥k¤@Äæ,°O¿ý¤W¤@¦¸¦¨¥æÁ`¶q
-
- '°õ¦æµ{¦¡½X '**§ì¨ú§Anªº¸ê®Æ**
- Cells(i, Columns.Count) = Range("h" & i) '°O¿ý¦¹¦¸¦¨¥æÁ`¶q
- Sht2.Range("A2").EntireRow.Insert
- Sht2.Range("A2:J2").Value = Range("A" & i & ":J" & i).Value
- Else
- Cells(i, Columns.Count) = "" '**¦¨¥æÁ`¶qÂk¹s
- End If
- Else
- Cells(i, Columns.Count) = "" '**¦¨¥æÁ`¶qÂk¹s
- End If
- Next
- End Sub
½Æ»s¥N½X |
|