Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am having a similar problem here. I created a long running macro, and
would like the user to be able to navigate around the workbook while the macro is running. In the mean time, I popup a modeless dialog to keep the user inform regarding the process. I face two problems: 1. Excel stop responding to input while the macro is running. I can't navigate the workbook. 2. My modeless dialog box doesn't repaint until the macro is done. Both problem originate from which Excel did not handle window messages while the macro is running. I tried to peek into the message loop to process the message, but that doesn't help either. Anybody has a solution to this? James. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Did you try using the DoEvents command?
|
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Did you try using the DoEvents command?
|
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Good Call. It works!!! Thanks a lot.
That raise another problem. The DoEvents causes excessive flickering on the UI... wrote in message oups.com... Did you try using the DoEvents command? |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I may be completely off track but often flickering is caused if you are
selecting cells, sheets etc rather than accessing their values directly. If you're not doing that another idea would be try Application.ScreenUpdating = False (then set it to true when you're finished) |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I may be completely off track but often flickering is caused if you are
selecting cells, sheets etc rather than accessing their values directly. If you're not doing that another idea would be try Application.ScreenUpdating = False (then set it to true when you're finished) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Hide screen movements when a macro is running | Excel Discussion (Misc queries) | |||
Status bar (or similar) to appear whilst running a long macro | Excel Discussion (Misc queries) | |||
running a macro on every refresh of the screen | Excel Programming | |||
How to stop screen blinking when running macro | Excel Programming | |||
Eliminate screen flashing while running a macro using VBA in Microsoft Excel. | Excel Programming |