Hi,
I am looking for VB code that will hide any blank rows within my list. I hve a list of numbers in column c and a seperate formula removes the staff number from the list when they have been give a job. The list of staff is seperate on sheet 4 and their numbers are in column c. I have been tinkering about with the code below which can hide individual rows but I need something that will search down column C and hide any rows which are blank. Any help would be much appreciated
I am looking for VB code that will hide any blank rows within my list. I hve a list of numbers in column c and a seperate formula removes the staff number from the list when they have been give a job. The list of staff is seperate on sheet 4 and their numbers are in column c. I have been tinkering about with the code below which can hide individual rows but I need something that will search down column C and hide any rows which are blank. Any help would be much appreciated
Code:
Private Sub Worksheet_Calculate()
On Error GoTo stoppit
Application.EnableEvents = False
With Me.Range("c:c")
If .Value = "" Then
.EntireRow.Hidden = True
Else
.EntireRow.Hidden = False
End If
End With
stoppit:
Application.EnableEvents = True
End Sub