- ©«¤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
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2016-6-24 07:56 ½s¿è
¦^´_ 7# c_c_lai
¥i¤F¸Ñ¤@¤U- Sub Ex() '§R°£¦Uªí³Ì«á3Ӽƾڦæ
- Dim sh As Worksheet, r As Double, i As Integer
- Application.FindFormat.Clear
- On Error GoTo Er:
- With Workbooks.Add
- .Sheets(1).Range("a" & Rows.Count) = "test"
- .Sheets(1).Range("a" & Rows.Count) = ""
- For i = 1 To 10
- For Each sh In .Worksheets
- sh.Activate
- If i > 1 Then
- On Error GoTo 0
- With sh
- .Cells(i, 1) = "aa"
- .Cells(i, 1) = ""
- End With
- End If
- r = sh.Cells.Find("", , , , 1, 2).Row - 1 ' ªí®æ³Ì¤j¦æ¸¹ (¦Pµ¥©ó SearchFormat:=False)
- Debug.Print i, sh.Name, r, "¿ù»~È " & Err
- Next
- Next
- .Close False
- End With
- Exit Sub
- Er:
- With sh
- .Cells(i) = "aa"
- .Cells(i) = ""
- End With
- Resume
- End Sub
½Æ»s¥N½X |
|