Split (by paragraphs) into multiple shapes run-time error
Describe the bug Feature not working (except on seemingly random occasions)
To Reproduce Steps to reproduce the behavior:
- Create shape
- Turn on bullet points for the share
- Put in some text in bullets ("test" ENTER "test" ENTER)
- Click Split (paragraphs) into multiple shapes
- Run-time error :( (see screenshot)
Expected behavior Each bullet point put into a separate shape, formatting as the original shape
Desktop (please complete the following information):
- OS: Windows 11
- Version tested on 1.46 and newest beta (1.50)
It works on my side. But let me try to test this a bit.
Yeah, can't really tell what breaks it. Just run a few simple tests and it worked flawless. I recall that some error were on shapes / textboxes that someone else wrote - not sure why this would change how the script runs but just throwing it out there.
Appreciate the plug-in, by far the best one I used (incl. the paid, in-house, etc.)
Hi @jb21371adl, I’ve taken another look but haven’t been able to reproduce the issue. I’ll close this for now, but just let me know if it happens again and I can reopen it.
No problem, the add-in is top notch anyways. I also found the same type of error occurring in merge text tool however the workaround is to do the merging in smaller batches. Maybe the root cause is shared among both functions? See attached screens with 1) error message; 2) the pptx shapes causing it (the content seems to play no role as the Instrumenta-anonymized slide has same issues as org)
-
Error
-
Slide
This is for info purposes only, is seems to be a minor thing and I'm fully satisfied with the add-in as it is. Keep it up!
I've asked Copilot to investigate the error:
That specific error - Run‑time error -2147221040 (800401d0): “Method 'Copy' of object 'TextRange2' failed” — is a classic PowerPoint VBA quirk. It doesn’t come from your code being “wrong” so much as from TextRange2.Copy being extremely fragile.
But there is probably a workaround. So reopening this, I'll look into it.
Should be fixed now in the latest beta 1.58. Changed the logic a little bit and allowed time for copy-paste to complete. Hope this works now as expected!