WindowSelectionChange cursor flicker

J

john

I have added a WindowSelectionChange event handler in Office 2007, and
noticed that when I use the arrow keys, the mouse cursor will flicker. In
other words, the cursor will alternate from the wait cursor to the I-Beam
cursor when I hold down one of the arrow keys.

I found this happens even if I have an empty WindowSelectionChange subroutine.

Any ideas on why this happens or what can be done about it?
 
R

Russ

I have added a WindowSelectionChange event handler in Office 2007, and
noticed that when I use the arrow keys, the mouse cursor will flicker. In
other words, the cursor will alternate from the wait cursor to the I-Beam
cursor when I hold down one of the arrow keys.

I found this happens even if I have an empty WindowSelectionChange subroutine.

Any ideas on why this happens or what can be done about it?

Even an empty WindowSelectionChange subroutine is telling MSWindows to watch
for that event. Delete the whole WindowSelectionChange subroutine to get
back to normal. A faster computer might make things less noticeable.
 
R

Russ

Another thing you can try is put the command DoEvents in your empty
WindowSelectionChange subroutine. DoEvents allows MsWindows Operating System
to take care of tasks that are queued for execution before returning to the
VBA subroutine. Please report whether that helped.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top