N
Niek
We strip a document containing mergefields into a fixed part(image) and a variable part, for the use in a composing tool.
To do this we determine the paragraphs with mergefields and delete all characters, excl. the paragraphsign and manually inserted line-end(CTRL+Enter).
For Each aWord In par.Range.Characters
If Asc(aWord) <> 13 And Asc(aWord) <> 11 Then
aWord.Select
Selection.Delete
End If
Next
Under NT/Office97 and XP/XP this worked OK. But since XP/2003 it doesn't. All characters are deleted including manually inserted line-end(CTRL+Enter).
If you delete the characters manually and leaves the manually inserted line-end it also acts wrong????
Does anyone can explain this to me and help me with a solution.
Thanx.
To do this we determine the paragraphs with mergefields and delete all characters, excl. the paragraphsign and manually inserted line-end(CTRL+Enter).
For Each aWord In par.Range.Characters
If Asc(aWord) <> 13 And Asc(aWord) <> 11 Then
aWord.Select
Selection.Delete
End If
Next
Under NT/Office97 and XP/XP this worked OK. But since XP/2003 it doesn't. All characters are deleted including manually inserted line-end(CTRL+Enter).
If you delete the characters manually and leaves the manually inserted line-end it also acts wrong????
Does anyone can explain this to me and help me with a solution.
Thanx.