Hey all,
I need help with a macro to unhide a row based on a forumla result, and repeat this process any number of times.
Example, A1 is set with a forumla to change based on data entered into A3. I need Row 2 to unhide based on A1's result. Then I need to repeat this process for entering data into B3, where Row 3 would then become unhidden.
I have used the change event, and it works fine, but I would rather restrict the unhiding to actual data entering, and not cursor moves.
Current code:
[VBA]
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If (Rows(Target.Row + 1).EntireRow.Hidden = True) = True Then
ActiveSheet.Unprotect
Rows(Target.Row + 1).EntireRow.Hidden = False
Target.Select
ActiveSheet.Protect
End If
End Sub
[/VBA]
Thanks in advance. I'm