ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   hide row automatically (https://www.excelbanter.com/excel-programming/272112-hide-row-automatically.html)

shital

hide row automatically
 
i have filed like

Date, party name, amt,
startdt,proddt,proccdt,finesdt,dispdt,

i want when i fill data in all last 5 filed it should
automatically hide that row.

how to do that? any help plz.
Thanks in advance.


Tom Ogilvy

hide row automatically
 
Right click on the sheet tab and select view code. Paste in code similar to
this:


Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Application.CountA(cells(Target.Row,4).Resize(,5)) = 5 Then
Target.EntireRow.Hidden = True
End If
End Sub

Regards,
Tom Ogilvy


****al wrote in message
...
i have filed like

Date, party name, amt,
startdt,proddt,proccdt,finesdt,dispdt,

i want when i fill data in all last 5 filed it should
automatically hide that row.

how to do that? any help plz.
Thanks in advance.





All times are GMT +1. The time now is 11:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com