What does in mean when code runs in debug but not in operation?

Started by paulv45, May 08, 2022, 01:49:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

paulv45

I am manipulating shape text.
When I do:
objChar.CharProps(visCharacterSize) = 8#
Code runs fine when in debugger using <f8> to step through.
When run normally it exhibits bad behavior.

Is there anything in general this implies?

If I precede the line with a MsgBox to force user interaction, also runs fine.

I've tried update false/true and timer.

Any thoughts?

Yacine

I know Wapperdude tried it already, but can you too try putting a doevents, once before and once after the assignment?
Yacine

paulv45

I did the DoEvents before and after and that fixes the problem.
Tried just before and that also works.
Tried just after and that, not surprisingly to me, fails.
I think we have a fix.
Thanks so much, Yacine.  Nice work.