You can use the function as an expression in the Visible property for the row and it will get evaluated for each row. If you can set it to return True every time, or evaluate it to True, i.e. =Iif(code.whAdd(),True,True) then it will be executed and also hide the row.