Instrumenta icon indicating copy to clipboard operation
Instrumenta copied to clipboard

Split (by paragraphs) into multiple shapes run-time error

Open jb21371adl opened this issue 1 year ago • 2 comments

Describe the bug Feature not working (except on seemingly random occasions)

To Reproduce Steps to reproduce the behavior:

  1. Create shape
  2. Turn on bullet points for the share
  3. Put in some text in bullets ("test" ENTER "test" ENTER)
  4. Click Split (paragraphs) into multiple shapes
  5. Run-time error :( (see screenshot)
Image

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)

jb21371adl avatar Sep 27 '25 13:09 jb21371adl

It works on my side. But let me try to test this a bit.

iappyx avatar Dec 14 '25 15:12 iappyx

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.)

jb21371adl avatar Dec 14 '25 20:12 jb21371adl

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.

iappyx avatar Feb 08 '26 11:02 iappyx

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)

  1. Error Image

  2. Slide Image

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!

jb21371adl avatar Feb 09 '26 07:02 jb21371adl

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.

iappyx avatar Feb 15 '26 20:02 iappyx

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!

iappyx avatar Feb 16 '26 20:02 iappyx