is there any way to change this to a sub? and keeping formula
=listnames(AI469:AI487)
in the specified cell return the same result?
[VBA]
Function ListNamesAdmin(RngCells As Range, Offset As Boolean)
Dim oCel As Range
For Each oCel In RngCells
If oCel.Row Mod 2 = Offset ^ 2 Then _
If oCel.Value <> "" Then _
ListNamesAdmin = ListNamesAdmin & oCel.Value & ", "
Next ListNamesAdmin = Left(ListNamesAdmin, Len(ListNamesAdmin) - 2) End Function
[/VBA]
after much work it come down that the function formula is stopping the hide row from happening. So I would like to call the function as a sub at the end of the hide row code.