- ©«¤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
|
¦^´_ 7# myleoyes
¸Õ¸Õ¬Ý- Option Explicit
- Sub Ex()
- Dim C As Integer, Rng(1 To 2) As Range, i As Integer, ii As Integer
- Set Rng(1) = [AH1]
- C = Cells(1, Columns.Count).End(xlToLeft).Column
- If C < Rng(1).Column Then
- C = Rng(1).Column
- Else
- C = C + 1
- End If
- Cells(1, C) = "=SUM(R3C:R200C)"
- Cells(2, C) = "=R" & C - Rng(1).Column + 3 & "C1&""µ§"""
- ii = 3
- Set Rng(2) = Cells(1200, Rng(1).Column).End(xlUp).Offset(1)
- For i = 0 To C - Rng(1).Column
- If Val(Cells(2, Rng(2).Column).Offset(, i)) <> 0 Then
- Rng(2).Offset(, i) = "=ROUND(r" & ii & "c6 *" & [M3] & ",2)"
- ii = ii + 1
- End If
- Next
- End Sub
½Æ»s¥N½X |
|