Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Bakir Farooq   on Dec 16 In MS Office Category.

  
Question Answered By: Hadil Khan   on Dec 16

Copy this code into your sheet code
this after you filter  your employee
double click on the cell to open the hidden rows  below.

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
LastRow = 100
CurrentRow = ActiveCell.Row + 1 'get the current row your employee is
showing
While Cells(CurrentRow, 1) = Empty And CurrentRow < LastRow + 1
Cells(CurrentRow, 1).EntireRow.Hidden = False 'unhide all the row
between the employee you want to see and the next one
CurrentRow = CurrentRow + 1
Wend
End Sub

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Filter Rows Question Or get search suggestion and latest updates.


Tagged: