tommyboy1019
New Member
- Joined
- Aug 30, 2018
- Messages
- 11
Hello all youVBA geniuses, Need some help with a doozy of a code here. I've got this pieceof script that hides rows in a tab called "Lab Tests_Plants". Youenter a number in cell D15 and it shows you the corresponding amount of rows.Cell E15 = "#" and E16 = "<=" to lay out parameters.
Private Sub worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Me.Range("D15:D15")) Is Nothing Then
Range("A14:AC28").AdvancedFilter Action:=xlFilterInPlace,CriteriaRange:=Range _
("E15:E16"), Unique:=False
What I need to do is enter this number on a different tab called“LaborBudget” so that it will hide the rows on the sheet that the macro isin(Currently “Lab Tests_Plants”).
Forexample I enter 5 in cell D15 in the “Labor Budget” tab and 5 rows showin the “LabTests_Plants” tab.
Any advice or help is highly appreciated.
Thanks!
Private Sub worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Me.Range("D15:D15")) Is Nothing Then
Range("A14:AC28").AdvancedFilter Action:=xlFilterInPlace,CriteriaRange:=Range _
("E15:E16"), Unique:=False
What I need to do is enter this number on a different tab called“LaborBudget” so that it will hide the rows on the sheet that the macro isin(Currently “Lab Tests_Plants”).
Forexample I enter 5 in cell D15 in the “Labor Budget” tab and 5 rows showin the “LabTests_Plants” tab.
Any advice or help is highly appreciated.
Thanks!