Directory listing in word ?

  • Thread starter Thread starter TonyB
  • Start date Start date
T

TonyB

Hi,
Is there any way of listing all the files in a directory and importing the
list into a word doc.
TIA
Tony
 
No direct way. You could use a written vba procedure. See
http://word.mvps.org/FAQs/MacrosVBA/InsertFileNames.htm.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
TonyB shared this with us in microsoft.public.word.newusers:
Hi,
Is there any way of listing all the files in a directory and
importing the list into a word doc.
TIA
Tony

The simplest way: good old DIR.
Go to a command prompt (Start --> Run; cmd) and type the following:

dir /-p full_path_to_your_directory > c:\temp\dir.txt

Et voila: you now have a text file with all files from your directory.
Dir has a lot of other useful switches. You can see them with dir /?
 
Back
Top