Error 80040208   This operation cannot be performed while the window is firing events.

Situation:

You attempted to use the PullFocus method with a window while VBA window events or window field events are occuring.

Solution:

The PullFocus method forces a window to “lose” the focus and should only be used in windows where no pending VBA window events or field events are occuring. VBA events rely on the focus being present to run properly.


Documentation Feedback