I write the content of a notes field to Winword and replace there a special replacement tag with the field value.
If these strings contain Newlines (Chr(13) & Chr(10)) I replace them with Chr$(13), otherwise they will not correctly tranferred (2 rectangles instead of newline…)
Chr(13) works fine, but if the replacement tag in winword is at the end of a table cell, it doesn’t work and the Chr(13) is written as rectangle. :-((
I tried to put a space after the tag, but this has no effect. Only after putting another linefeed after the replacement tag in the cell works correct.
Is there any solution against this strange effect?
Many thanks in advance!
Isa
I use this code in notes:
Set varFind = varRange.Find
varFind.ClearFormatting
varFind.Replacement.ClearFormatting
varFind.MatchWholeWord = True
Call varFind.Execute(“<” & sItemName & “>”, False, False, False, False, False, 1, False, False, sTmp, 2)