Recently, I have started facing ‘troubling issues’ with my Workbook getting ‘hanged’, Worksheets flickering & the arrow cursor turning in to a blue spinning ball. These issue remains for a specified time period I.e it starts when now>= 07-25-2022 9:15:00 AM & remains up to now<07-25-2022 10:00:00 AM i.e. from 9:15 till 10:00 whenever the Workbook is kept opened. As soon as now>=10:00, all these ‘troubles’ vanishes & the all ws in the Workbook functions normal.
Here I need to mention that all these ‘troubling issues’ with my Workbook started from the time I inserted a new Worksheet (in this same Workbook) & in the Module I pasted a ‘new vb code’.
I also found that when I delete the ‘new vb code’ from the Module & use the remaining Workbook, these ‘troubling issues’ vanishes.
The new vb code has a For Next loop whose counter is “i”. The lines of this new vb code are:
For another 12 ws, I am using a code pasted in ThisWorkbook which has the vb code:
My query is;
1. Is the same variant being used in both codes causing these ‘troubling issues’, if yes, what is the remedy?
2. Should I make the counter “i” in the new vb code Worksheet specific i.e. its action should remain confined to the new ws only? If yes, how to make it confined to the new ws only?
3. Any other help so that I can get rid of the new ‘troubling issues’?
Any help provided would be appreciated.
Bookmarks