anhchanghamhoc
Thành viên mới

- Tham gia
- 18/12/06
- Bài viết
- 40
- Được thích
- 2
Sub HiddRows()
Dim c As Range
Dim firstAddress As String
Application.ScreenUpdating = False
Rows("07:891").Hidden = False
With Range("C07:C91")
Set c = .Find(What:="", LookIn:=xlValues)
If Not c Is Nothing Then
firstAddress = c.Address
Do
c.EntireRow.Hidden = True
Set c = .FindNext(c)
Loop While Not c Is Nothing
End If
End With
End Sub
Dim c As Range
Dim firstAddress As String
Application.ScreenUpdating = False
Rows("07:891").Hidden = False
With Range("C07:C91")
Set c = .Find(What:="", LookIn:=xlValues)
If Not c Is Nothing Then
firstAddress = c.Address
Do
c.EntireRow.Hidden = True
Set c = .FindNext(c)
Loop While Not c Is Nothing
End If
End With
End Sub