Microsoft Office Forums

Microsoft Office Forums (https://www.msofficeforums.com/)
-   Word (https://www.msofficeforums.com/word/)
-   -   Auto Insert Text from external sources (https://www.msofficeforums.com/word/49867-auto-insert-text-external-sources.html)

jtm4890 10-25-2022 07:05 AM

Auto Insert Text from external sources
 
Is there any method to insert text but since another .txt or .csv file?

I mean like Fields, something like this:

word file name: Field: Cell-Table or Custom Field



file1 path/file.txt table1/cellA1

file2 path/file.txt Field-in-page-03-row1-column1

macropod 10-25-2022 06:02 PM

You can certainly use Word's Insert|Object>Text from File function to insert content at whatever the current selection might be, it's not at all apparent what you want done with the inserted content. Perhaps you're thinking of something along the lines of a mailmerge? Some clarification of your expectations would help.

Guessed 10-25-2022 06:54 PM

Are you asking how to insert a complete text file into a specific location in a document?
Or are you asking how to parse a text file to find a specific item to bring it into a defined location in the document.

If it was me, I would start by 'tagging' the target locations in the Word document by inserting Content Controls and either map them to embedded XML fields or use their Title and/or Tag properties to populate them from the text file inputs.


All times are GMT -7. The time now is 05:39 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft