Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-23-2023, 10:31 AM
knpaddac knpaddac is offline Insert text from file for ALL files in a folder Windows 10 Insert text from file for ALL files in a folder Office 2016
Novice
Insert text from file for ALL files in a folder
 
Join Date: Jan 2018
Posts: 13
knpaddac is on a distinguished road
Default Insert text from file for ALL files in a folder


I've searched the forum but could not find this question/answer, so I apologize if it is a repeat...


I typically have batches of a few hundred word files that I need to combine into a single file. I use the 'insert text from file' function on the ribbon but this only tends to do 50ish files at a time, meaning I have to do it over and over to get them all. Is there a way to write some sort of script that would run the function multiple times until it has processed ALL files in a given folder?
Reply With Quote
  #2  
Old 07-23-2023, 05:05 PM
Guessed's Avatar
Guessed Guessed is offline Insert text from file for ALL files in a folder Windows 10 Insert text from file for ALL files in a folder Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,980
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Importing word docs is no different to importing text files so this code by Macropod would work with minimal alterations to change the filename suffix
https://www.msofficeforums.com/word-...data-into.html
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert text from file for ALL files in a folder Rename Files in a Folder and Overwrite if File Exists Jayay159 Word VBA 3 10-20-2021 11:48 PM
Replace text in several word 2010 files across a folder or collection Esgrimidor Word 15 02-01-2021 11:37 AM
Insert text from file for ALL files in a folder Extract Document Property and insert it into the same document, for many files in a folder MisrIdley Word VBA 1 12-07-2017 12:41 PM
Insert text from file for ALL files in a folder Macro to change all text color to black in all docx files in a selected folder joewoods Word VBA 13 05-16-2016 06:29 PM
Insert text from file for ALL files in a folder VBA batch file to insert text at end of 50 files slow, 90% CPU usage equalizer88 Word VBA 3 08-16-2015 04:56 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:40 AM.


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