Neither is working (Edited/Updated)

Re: The PickWindow command should normally display a pick list -- Emmanuel
Posted by GWrinkle ® , 05/16/2023, 21:22:50 Reply Top of Thread Forum

Absolutely nothing happens on either the Pick Window or the Activate Window commands. Not even a flicker of action. My entry just keeps plugging away in Word.

I will e-mail you the entry so that you can see it. Note that some of the macro is template/document specific especially in the Insert Field section of the commands, so keep an eye out there for adjustments. It is trying to insert the "DocumentProperty|CharactersWithSpaces" field, and that is in a different spot on the list depending on the template.

EDIT: Here is what I figured out on further study: When I run the PickWindow command, the selection window shows up in the first fraction of a second of the entry running. In other words, it is "step 1" even though I have it as "step 14". It disappears when step 2 commences, which is almost instantaneous after step 1. It seems there is an order of execution that puts PickWindow at the head of the line.

Based on this, I can only assume that ActivateWindow is doing something similar, although when I switch PickWindow for ActivateWindow, there is no visible result. However, the fact that the program is not switching at all to Excel (either as step 1 or step 14) makes me think there is more to this problem than an order of execution error.




Edit | Reply | | Original Message | Top of Thread | Current page | Author