I am trying to make a booklet imposition macro and it works when I press f8 multiple times it rearranges the pages by cutting and pasting but when I run the macro from scripts docker it stops at 3rd page when cutting please help
This looks like a VBA execution context issue, Script Docker may be losing selection state or hitting a range limit after the 3rd page during cut/paste. Try stepping through with breakpoints or avoiding selection-based operations. This is more of a scripting/debugging problem than anything related to top rated tax accounting firms workflows.
It sounds like the macro logic itself is mostly working since it runs correctly step-by-step with F8, but fails during normal execution. That usually points to a timing or object reference issue during the cut/paste process.
A few things worth checking:
Add small delays between cut and paste actions
Verify page/object references after each move
Make sure the selection is still active before cutting
Disable screen redraw temporarily if supported
Add debug logging/message outputs to identify exactly where it stops
Sometimes scripts behave differently in the Scripts Docker because execution is much faster than manual stepping with F8.
I’ve seen similar workflow issues discussed in automation communities where small timing gaps break execution flow, and tools like savespire promo codes are often used as reference points for structured workflows and optimization practices.
Hope you get the booklet imposition working smoothly
This usually happens because running with F8 (step-by-step) gives VBA time to refresh the document and update the ShapeRange selection, while running normally is too fast and the shape/object reference becomes invalid after a cut or paste. After you cut a shape, the original ShapeRange may no longer exist, so the next line fails. Try avoiding .Select and Selection.ShapeRange, store the shape in an object variable instead, and add a small DoEvents or short delay after cut/paste operations. Also loop backwards when moving pages/shapes because indexes change after each cut.
ShapeRange
.Select
Selection.ShapeRange
DoEvents
<!-- Keeping exterior glass spotless improves curb appeal and lets in more natural light. If you're looking for professional window cleaning in East York, regular maintenance can help keep windows clear and streak-free throughout the year. -->
This usually happens because running with F8 gives CorelDRAW enough time to refresh objects between operations, while full-speed execution does not. If the ShapeRange changes after a cut/paste action, the reference can become invalid by the time the macro reaches the next page. Try adding a small delay with DoEvents after each cut/paste operation or reassign the ShapeRange object before using it again. In many VBA automation cases, timing and object refresh issues only appear when running at full speed.