A
Antonhino
I have made a code which copy a text from a xml file and paste it into
word.
But when the text is a serie of ten same letters like 'aaaaaaaaaa', the
string pasted is a number '0000000105'. What can I do to avoid this?
Here is my code.
' copy HTML string to clipboard
PutHTMLClipboard (myStr)
ActiveDocument.Bookmarks.Add "startHTMLCopyPasteBmk",
Selection.Range
' paste it into Word doc
On Error GoTo error
Selection.PasteSpecial dataType:=wdPasteHTML
Thank you for your help.
word.
But when the text is a serie of ten same letters like 'aaaaaaaaaa', the
string pasted is a number '0000000105'. What can I do to avoid this?
Here is my code.
' copy HTML string to clipboard
PutHTMLClipboard (myStr)
ActiveDocument.Bookmarks.Add "startHTMLCopyPasteBmk",
Selection.Range
' paste it into Word doc
On Error GoTo error
Selection.PasteSpecial dataType:=wdPasteHTML
Thank you for your help.