I wrote a piece of code in VB that replaces certain characters in a Word document with a paragraph-ending.
As you see, I use "^p" for paragraph-end.
This works fine, but now it seems that it crashes for users in another country. Why? Because "^p" is not valid, the code for paragraph-end is: "^a".
So: there must be language-setting somewhere that is different. However: I can't find which one!
Does anybody know which setting determines that the code for "paragraph-end" is "^a" instead of "^p" ?
Code:
With objWord.Documents(strMergeNaam)
With .Content.Find
...
.Execute "[bnrnl]", True, False, False, False, , , , , "^p", wdReplaceAll
...
This works fine, but now it seems that it crashes for users in another country. Why? Because "^p" is not valid, the code for paragraph-end is: "^a".
So: there must be language-setting somewhere that is different. However: I can't find which one!
Does anybody know which setting determines that the code for "paragraph-end" is "^a" instead of "^p" ?