- ©«¤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
|
¦^´_ 14# man65boy
¸Õ¸Õ¬Ý- Sub Ex()
- Dim Sh As Worksheet, Rng As Range
- On Error Resume Next 'µ{¦¡¦³¿ù»~¤£²z·|,Ä~Äò°õ¦æ¤U¥h
- For Each Sh In Worksheets
- Set Rng = Sh.UsedRange.Columns("I:I").Offset(4) 'Columns("I:I") ¤u§@ªí¸ê®Æªº³Ì«á¤@Äæ ,Offset(4) ¸ê®Æ²Ä¤¦C¶}©l
- Rng.MergeCells = False '¨ú®ø¦X¨ÖªºÀx¦s®æ
- Rng.Value = Rng.Value 'Àx¦s®æªº®æ¦¡³]¬° ¼Æ¦r
- Set Rng = Union(Rng.SpecialCells(xlCellTypeBlanks), Rng.SpecialCells(xlCellTypeConstants, xlTextValues))
- 'xlCellTypeBlanks ªÅ¥ÕªºÀx¦s®æ, SpecialCells(xlCellTypeConstants, xlTextValues) '¤å¦rªºÀx¦s®æ
- 'UsedRange.Columns("I:I").Offset(4) Àx¦s®æ¤¤ ¨S¦³ [ªÅ¥Õªº],[¤å¦rªº] µ{¦¡·|¿ù»~
- If Err = 0 Then Rng.EntireRow.Delete
- If Err > 0 Then Err.Clear
- Next
- End Sub
½Æ»s¥N½X |
|