Hi there,
I have this code but it only hides rows based on a single cell result.
I really need to hide multiple rows based on result in column A (so this changes)
I have honestly spent the whole morning looking for and trying different options from different forums but keep getting erros. As I am a neophyte when it comes to macros I have no idea how to remedy the errors in the code I was trying.
So here is what I want to be able to do
I want to make code activate by control button.
Only check rows 67-176
if column A between rows 67-176 is 0 then hide if not unhide (if hidden) or leave. NB: the 0 is the result of a formula.
my current code below only calcs on result of one cell.
Thanks in advance for your help!!
I have this code but it only hides rows based on a single cell result.
I really need to hide multiple rows based on result in column A (so this changes)
I have honestly spent the whole morning looking for and trying different options from different forums but keep getting erros. As I am a neophyte when it comes to macros I have no idea how to remedy the errors in the code I was trying.
So here is what I want to be able to do
I want to make code activate by control button.
Only check rows 67-176
if column A between rows 67-176 is 0 then hide if not unhide (if hidden) or leave. NB: the 0 is the result of a formula.
my current code below only calcs on result of one cell.
Thanks in advance for your help!!
Code:
'Private Sub Worksheet_Calculate()
'Dim myresult As String
'Dim MyResult1 As String
'Dim MyResult2 As String
'Application.ScreenUpdating = False
'Application.EnableEvents = False
'Rows("1:" & Worksheets("Q U O T E").UsedRange.Rows.Count).EntireRow.Hidden = False
'myresult = Worksheets("Q U O T E").Cells(99, 1).Value 'Controls'
'MyResult1 = Worksheets("Q U O T E").Cells(72, 1).Value 'Valve Chamber'
''''''''''''''''''''''''''''''''''''''''''''''''''
'Select Case MyResult1
''Case "", "None", "0"
'Rows("72:93").EntireRow.Hidden = True
'Rows("167:167").EntireRow.Hidden = True
'End Select
'Select Case myresult
'Case "", "None", "0"
'Rows("99:114").EntireRow.Hidden = True
'End Select
'Application.EnableEvents = True
'Application.ScreenUpdating = True
'End Sub