Advertisement
Guest User

joel1234a

a guest
Jul 6th, 2015
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. Dim LastRow As LongLong
  2. Dim i As LongLong
  3. Dim Sheet2 As Worksheet
  4. LastRow = Worksheets("All").UsedRange.SpecialCells(xlCellTypeLastCell).Row
  5. MsgBox (LastRow)
  6. For i = 1 To LastRow
  7. If Application.WorksheetFunction.CountA(Worksheets("All").Range("J" & CStr(i) & ":" & "AHZ" & CStr(i))) = 0 Then
  8. Worksheets("All").Activate
  9. ActiveSheet.Rows(i).EntireRow.Hidden = True
  10. End If
  11. Next i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement