Thanks a lot for your suggestion.
Taking a look at your code I can see that
you call from your Sub the "lengthy calculation", which is just a procedure,
and when it is finished you call the hourglassoff function.
The above solution requires that the lengthy calculation is performed by a...