Originally Posted by
pacosalasv
Apparently if if there is a superscript already, it fails...
No, that is not the problem. If there is a superscript already, nothing happens.
The problem is that the code loops through all Shapes, because a TextBox is a Shape. However, if there are other types of Shapes present, they may not have text and you can't refer to those properties. That didn't crop up in the first file, but in the second file you have a Picture on Slide 1.
Here is a correction to the code that works on the second file:
Bookmarks