When the AfterCompleteWordEvent fires after hitting Enter, the CPWord variable is null. Is there a way to keep the last word typed before Enter is pressed in CPWord ?
CPWord reads the characters at the cursor position. After Enter you are in tne next line.
You can of course access ActiveParagraph directly to read the context and the text before. This would be necessary if you want to start your macro after Enter.