Excelgoeroe
New Member
- Joined
- Feb 4, 2012
- Messages
- 5
I am looking for a UDF that will hide a row on a condition. So not in a macro that needs an event, but in a formula:
=IF(A8=0;HideRow()) just as =IF(A8=0;Now())
I tried the following Function
Function RowHide(Arg1 As Integer) As Action
If Arg1 = 0 Then
ActiveSheet.Select
ActiveCell.Select
Selection.EntireRow.Hidden = True
End If
End Function
=IF(A8=0;HideRow()) just as =IF(A8=0;Now())
I tried the following Function
Function RowHide(Arg1 As Integer) As Action
If Arg1 = 0 Then
ActiveSheet.Select
ActiveCell.Select
Selection.EntireRow.Hidden = True
End If
End Function