Quote:
Originally Posted by RonNCmale
I got it to pull the info into the target document, but the information is halfway down the document and is not indented, nor is there a space after the first formfield text.
|
• The 'halfway down' is because you have a bunch of empty paragraphs after the 'Re:'. Click on the ¶ symbol on the Home tab to expose them.
• The lack of indenting is because that's how the last paragraph (the one where the code starts inserting) is formatted that way. If you format the last paragraph with the required attributes, anything inserted by the code will retain that format.
• The lack of a space between paragraphs is because you haven't specified any before/after spacing as part of the paragraph format. You could work around that by adding another '& vbCr' to 'wdTgtDoc.Range.InsertAfter .FormFields(4).Result & vbCr', but that really isn't how it should be done.