Hi,

I'm new to VB but am writing a macro which is adding xml tags around Word content.

I need to change a hard return with the text <lineBreak/>, but get an error each time.

I have tried to search for "^|", and have also tried to search for Chr(10), but nothing seems to work. Am I using the wrong code to detect the shift-enter key combination?

If I change the search to "^p" or Chr(13) it works fine.

Many thanks
pramenjatjek