Hello all,
I have a rather lengthy macro that is called by a userform. After the code runs for a few seconds, the userform disappears and does not automatically reappear (even when the code is finished). The only way to get the userform to reappear is to click in an Excel spreadsheet. (This can be any spreadsheet in any workbook, not just the one in which the macro operates.) Just before the userform disappears, the title bar at the top of the userform displays its caption followed by "(Not Responding)".
For a little background, the code adds a new workbook using the workbooks.add command. I don't know if this could contribute to the problem or not. The userform itself is also quite large; containing 12 textboxes and 25 labels dispersed accross two multipage tabs. In order to try to solve the problem I have increased the drawing buffer to 128000, though this did not help. I then decreased it to 16000, though this did not help either. My final effort was to insert the userform.repaint command in multiple locations in my code, but this had no noticeable effect.
Does anyone have a suggestion as to why this is happening and how I can correct the problem? Thanks!
I have a rather lengthy macro that is called by a userform. After the code runs for a few seconds, the userform disappears and does not automatically reappear (even when the code is finished). The only way to get the userform to reappear is to click in an Excel spreadsheet. (This can be any spreadsheet in any workbook, not just the one in which the macro operates.) Just before the userform disappears, the title bar at the top of the userform displays its caption followed by "(Not Responding)".
For a little background, the code adds a new workbook using the workbooks.add command. I don't know if this could contribute to the problem or not. The userform itself is also quite large; containing 12 textboxes and 25 labels dispersed accross two multipage tabs. In order to try to solve the problem I have increased the drawing buffer to 128000, though this did not help. I then decreased it to 16000, though this did not help either. My final effort was to insert the userform.repaint command in multiple locations in my code, but this had no noticeable effect.
Does anyone have a suggestion as to why this is happening and how I can correct the problem? Thanks!
Last edited: