mandalocascio
New Member
- Joined
- Nov 3, 2011
- Messages
- 29
[FONT="]Hello,[/FONT]
[FONT="]I have a hide row on a calculate event which is partially working when it is above and below a given value. [/FONT]
[FONT="]1. H57 is a calculation with an error message [/FONT]
[FONT="]=IFERROR(SUM(G41:G51,G54:G55)/SUM(E41:E51,E54:E55),"please complete all sections")[/FONT]
[FONT="]2. my code [/FONT]
[FONT="]Problem 1 - it is only working when i hit play in the VBA window ie not dynamically as it should on a calculate event? [/FONT]
[FONT="]Problem 2 - as the person is working through the sheet ie H57 = "please complete all sections" - when the cell has this text the cells are also hidden, so i need to include that in the event.[/FONT]
[FONT="]Thanks, Amanda [/FONT]
[FONT="]I have a hide row on a calculate event which is partially working when it is above and below a given value. [/FONT]
[FONT="]1. H57 is a calculation with an error message [/FONT]
[FONT="]=IFERROR(SUM(G41:G51,G54:G55)/SUM(E41:E51,E54:E55),"please complete all sections")[/FONT]
[FONT="]2. my code [/FONT]
Code:
[COLOR=#333333][FONT="]Private Sub Worksheet_Calculate()
If Me.Range("H57").Value > 2.5 Then
Rows("61:72").EntireRow.Hidden = True
Else
If Me.Range("H57").Value < 2.4 Then
Rows("61:72").EntireRow.Hidden = False
End If
End If
End Sub[/FONT][/COLOR]
[FONT="]Problem 2 - as the person is working through the sheet ie H57 = "please complete all sections" - when the cell has this text the cells are also hidden, so i need to include that in the event.[/FONT]
[FONT="]Thanks, Amanda [/FONT]