Hello sagar,
I have added the following macro to the attached workbook. This will show only the unbilled hours.
Sub ShowUnbilledHours()
Dim Cell As Range
Dim DSO As Object
Dim Rng As Range
Application.ScreenUpdating = False
Set DSO = CreateObject("Scripting.Dictionary")
Set Rng = ActiveSheet.UsedRange.Offset(2, 0)
Set Rng = Rng.Resize(RowSize:=Rng.Rows.Count - 2)
For Each Cell In Rng.Columns(33).Cells
If Cell <> "" Then
If Not DSO.Exists(Abs(Cell)) Then
DSO.Add Abs(Cell), Cell.Address
Else
Range(DSO(Abs(Cell))).EntireRow.ClearContents
DSO.Remove Abs(Cell)
Cell.EntireRow.ClearContents
End If
End If
Next Cell
On Error Resume Next
Set Rng = Rng.SpecialCells(xlCellTypeBlanks)
If Err = 0 Then
Rng.Delete
End If
Application.ScreenUpdating = True
Set DSO = Nothing
End Sub
To Run the Macro...
To run the macro from Excel, open the workbook, and press ALT+F8 to display the Run Macro Dialog. Double Click the macro's name to Run it.
Sincerely,
Leith Ross
Bookmarks