Why do my custom paragraph styles change after I hit <CR>?

Let’s say I have two custom text formatting styles called TextA and TextB. TextB is the main formatting style I want to use in the document.

I type a paragraph in TextB. The style has the stipulation that the style of the next paragraph should also be TextB.

I hit the . As soon as I do, the style of the first paragraph changes into TextA. The new paragraph will be TextB, but the paragraph I just finished has been changed into TextA.

Why is this happening? It does not do this with all my styles, just some of them. I have not been able to figure out any set conditions under which this happens. TextB says the next style should be TextB. They are not inherited from each other, or even from the same parent style; both come from different styles. TextA is inherited from the default style, TextB is not.

To fix it, all I need to do is to type a cntl-Z to undo the style change, and it reverts back to the style I want (TextB), still maintaining the new paragraph at the proper style, so there seems to be a two-step process involved here which can be undone. BUT I don’t want to have to do a cntl-Z after every paragraph.

And what is shown in EditUndo:??? before you hit Ctrl+Z? Possibly the wording there in place of ??? would give a hint, like AutoCorrect or something?

@geraldike Upload a sample file.

@mikekaganski – You just solved the problem for me. AutoCorrect was set to automatically change styles. I never really explored what kinds of things AutoCorrect does. Changing that seems to have done the trick. Thanks.

Yes! That is the problem I have been having, too. When I set up a custom style in a document–say Book Antiqua 120% spacing, with added space after the paragraph, etc.–and then I do a Z (Undo) a few times, the paragraph style always reverts to my default. Let’s say that’s Times New Roman 12, double-spaced. So I wrote the paragraph in Book Antiqua, then I change my mind about a word or two, and I Z a few times, all of a sudden my paragraph reverts to 12pt Times! Freaked me out the first time it happened. Turns out there is that check box, “Replace Custom Styles,” and I think it is checked by default. Cross fingers, I’m gonna go see if it worked.

(copying @geraldike’s comment to make an Answer):

@mikekaganski – You just solved the problem for me. AutoCorrect was set to automatically change styles. I never really explored what kinds of things AutoCorrect does. Changing that seems to have done the trick. Thanks.