Sub b() Dim intRow As Integer, bytCol As Byte, bytIdx As Byte, intIdx As Integer Dim SourceArray() As String, strPrompt As String intRow = ActiveCell.SpecialCells(xlCellTypeLastCell).Row strPrompt = "工作表有下列行为空行:" For intIdx = 1 To intRow bytCol = Cells(intIdx, 256).End(xlToLeft).Column ReDim SourceArray(1 To bytCol) For bytIdx = 1 To bytCol SourceArray(bytIdx) = Cells(intIdx, bytIdx).Text Next If LenB(Trim(Join(SourceArray))) = 0 Then strPrompt = strPrompt & " | " & intIdx Next MsgBox strPrompt End Sub
[此贴子已经被作者于2008-2-2 13:51:04编辑过] |