C
christophercbrewster via OfficeKB.com
I need to loop through the files in a folder and reading the content of each
into a variable. It needs to be on the TXT/ASCII level rather than approached
through Word, because there are some problem characters that aren't displayed
correctly in Word. (I'm trying to get rid of them.) I think this would use
the FileSystem object but I'm stumped about how to code it. I think it would
start:
dirPath=ActiveDocument.path
Set fs = CreateObject("Scripting.FileSystemObject")
for each txtFile in fs. [something]
Help appreciated.
--
Christopher Brewster
Lockheed Martin, Eagan MN
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/word-programming/200902/1
into a variable. It needs to be on the TXT/ASCII level rather than approached
through Word, because there are some problem characters that aren't displayed
correctly in Word. (I'm trying to get rid of them.) I think this would use
the FileSystem object but I'm stumped about how to code it. I think it would
start:
dirPath=ActiveDocument.path
Set fs = CreateObject("Scripting.FileSystemObject")
for each txtFile in fs. [something]
Help appreciated.
--
Christopher Brewster
Lockheed Martin, Eagan MN
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/word-programming/200902/1