Thanks for you help Matt.
I originally needed the function for filters. I was doing a test case with just hiding a row manually myself. This is where I am having problems. In the case with the filters, having the simple =SGM_IsRowVisble(A1) is fine... it get's updated when the filters are changed. Unfortunately, when I try hiding the row myself, the formula does not get updated. It only gets updated by using Volatile when other formulas are updated and no other formulas are getting updated when I hide a row.
Any other ideas? If it's not possible, I can always just rename my function to IsFilterRowVisble. But I would like to have a robust function that can tell if any row is visible or not and get's updated even when the user manually hides the row.
Thanks again!
Main Topics
Browse All Topics





by: mvidasPosted on 2004-04-08 at 11:18:32ID: 10785886
Hi xrimson77,
.....
ble(A1)),. ..
Try making Application.Volatile the first line in your function. This will get it to work, but could cause a lot of unnecessary recalculations.
You could also keep your function the same, but in the cell that calls it, add a predefined function that will calculate.
i.e. instead of
=if(SGM_IsRowVisible(A1),.
use
=if(and(true,SGM_IsRowVisi
Application.Volatile should definately work but as I said it could cause unnecessary calculations. The second option should do the trick.
Hope this helps!
Matt