View Single Post
 
Old 07-28-2011, 09:25 AM
Catalin.B Catalin.B is offline Windows Vista Office 2007
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

After the line : Worksheets("Hoja5").Activate


insert this:


Dim i As Integer
For i = 2 To 100
If Sheets("Hoja5").Range("A" & i).Value = 0 Then
'delete empty rows
Rows(i & ":" & i).EntireRow.Delete

End If
Next i


If you replace "Delete" from above to "Hidden = True", it will just hide empty rows, instead of deleting them
Attached Files
File Type: xlsm example.xlsm (20.7 KB, 10 views)
Reply With Quote