And now you get into real troubleshooting.

If your code stops on the Execute line -- you're going to need to find out why. What is the style it is trying to search for? Is that style applied anywhere in the document?

And we may need to back up a bit and have you answer an earlier question: why do you want to do this in the first place?

I guarantee you the problem at this point is not a coding problem, but rather something particular about your setup and the documents you are running on (for example, the original code would *only* run this formatting on Character styles -- since you are now running it on "all" styles - including table styles, list styles and paragraph styles -- you may need to have it adjust further).

Since I'm not going to throw code at you to see what may or may not work -- you'll need to define why exactly you want to do this.

And you may want to go do some learning on your own about styles... do you really want to, essentially, take out all formatting in the document *except* for font formatting? Why?

And if that's what you want to do -- what font formatting do you actually care about retaining? Is it just bold/italic/underline? Superscript? Because it may behoove you to go about this in an entirely different way...