>This works pretty good, but it still doesn't dock it, and it leaves the layout toolbar floating. If you attempt to dock it on the next line of code, the keyboard cludge hasn't executed yet and you have the same error.
>
>Probably have to use a timer? Or do you have any other ideas for a workaround?
>
Adding
DOEVENTS FORCE before DOCK seems to work.
--sb--