Perry
Sat May 19 13:50:33 CDT 2007
here's a link with all info regarding files/folders.
Try to implement in yr application and if you get stuck, repost indicating
which version of
MS Word you are using and relevant or failing code parts
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnarofftalk/html/office09072000.asp
Check below function in VBA help as well.
Dir()
And here's a good example:
http://word.mvps.org/faqs/macrosvba/BatchFR.htm
Good luck
--
Krgrds,
Perry
System:
Vista/Office Ultimate
VS2005/VSTO2005 SE
"red6000" <red1000002001@yahoo.com> schreef in bericht
news:464f2859$0$3838$c3e8da3@news.astraweb.com...
> Hi, how do I loop through all documents in a folder and perform a task?
>
> ie what I would like to do is:
>
> - while there is a word document in folder
> - open word document
> - perform code
> - next word document if there is one
>
> Thanks.
>