- ©«¤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
|
¦^´_ 1# kai6929
ªþÀɦ³¤TÓ ¤@¯ë¼Ò²Õ³£¦³ check() ³oµ{¦¡·|·d½k¶îªº- Option Explicit
- Sub check()
- Dim K As String, M As Boolean, xRow As Integer, xi As Integer
- With ActiveSheet.Shapes(Application.Caller)
- With .TextFrame
- K = .Characters.Text
- If Left(K, 1) = "¡½" Then
- .Characters.Text = "¡¼¥[¤u¤@"
- M = False
- Else
- .Characters.Text = "¡½¥[¤u¤@"
- M = True
- End If
- .Characters(1, Len(K) + 1).Font.Size = 10
- .Characters(1, 1).Font.Size = 10
- End With
- .TopLeftCell.Offset(, 1) = M
- .TopLeftCell.Offset(, 2) = IIf(CSng(M) = 0, 0, 1)
- End With
- Sheet2.UsedRange.Offset(1).Clear
- xRow = 3
- With ActiveSheet
- Do While .Cells(xRow, "C") <> ""
- If .Cells(xRow, "C") = 1 Then
- xi = xi + 1
- Sheet2.Rows(1).Copy Sheet2.Cells(Rows.Count, "A").End(xlUp).Offset(1)
- With Sheet2.Cells(Rows.Count, "A").End(xlUp)
- .Cells(1) = xi
- .Cells(1, 3) = ActiveSheet.Cells(xRow, "D")
- .Cells(1, 6) = ActiveSheet.Cells(xRow, "H")
- .Cells(1, 7) = ActiveSheet.Cells(xRow, "I")
- .Cells(1, 9) = ActiveSheet.Cells(xRow, "K")
- End With
- End If
- xRow = xRow + 1
- Loop
- End With
- End Sub
½Æ»s¥N½X |
|