I have an Excel 2016 VBA macro for processing a large volume of data.
The macro can take up to 14 minutes to run due to the volume of data.
I have used the usual methods for speeding up the macro which means screen refresh is switched off.
So when the macro is running I do not know if all is going well or if the macro has entered and infinite loop somewhere.
So what I would like to do is to set points in the code where I would show a comment on the screen (for example - 'initial data sorting complete') and in that way I would know the macro is working properly through the various stages of the code.
Here comes the problem. I cannot find any method where the Message Box showing the comment does not time out as specified (I want the programme to continue unattended and not require any responses to any Milestone Message Boxes that appear). I have trawled the internet and tried many different permutations but nothing seems to work.
I would be grateful if anybody has any tried and successful method for doing this.
Many thanks,
DRILL
The macro can take up to 14 minutes to run due to the volume of data.
I have used the usual methods for speeding up the macro which means screen refresh is switched off.
So when the macro is running I do not know if all is going well or if the macro has entered and infinite loop somewhere.
So what I would like to do is to set points in the code where I would show a comment on the screen (for example - 'initial data sorting complete') and in that way I would know the macro is working properly through the various stages of the code.
Here comes the problem. I cannot find any method where the Message Box showing the comment does not time out as specified (I want the programme to continue unattended and not require any responses to any Milestone Message Boxes that appear). I have trawled the internet and tried many different permutations but nothing seems to work.
I would be grateful if anybody has any tried and successful method for doing this.
Many thanks,
DRILL