May be you can try like;
But this is not the way I recommend. Always there should be some way of identifying properties with some combination. We can help you if you share your source tree.
blnChanged = False
'Your operation here
For i = 0 To noOfFrames
'some click operation which makes the count to change
noOfFrames = "Get new count here"
If noOfFrames <> iMaxNoFrame Then 'iMaxNoFrame is old count
blnChanged = True
Loop While blnChanged = True