Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Eightman88
 
Posts: n/a
Default Have a lot of files in Word. How can a paste a listing of these?

Since I have MANY WORD files, I'd like to go through the listing before I
delete/review. Is there a way to simply copy the FILE NAME ONLY on a
document for printing?
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Kevin B
 
Posts: n/a
Default Have a lot of files in Word. How can a paste a listing of these?

Open a new word document, press Alt+F11 to open the VB Editor. Click on
INSERT in the menu and select MODULE.

Enter the following macro code in the module, substituting your path with
the one used below:

Sub PostFileNames

Dim strPath As String
Dim strDocType As String
Dim strDocName As String

strPath = "H:\Word\"
strDocType = "*.doc"
strDocName = Dir(strPath & strDocType)

Do Until strDocName = ""
Selection.TypeText Text:=strDocName & vbCrLf
strDocName = Dir
Loop
End Sub

Return to your document and click TOOLS, select MACRO, and then click MACROS
in the cascade menu. Select the macro named PostFileNames and click the RUN
command button to execute. You'll get one file name per line until all of
the Document files have been listed.

You might have to set the macro security settings to at least medium to run
this. YOu can do that by clicking TOOLS in the menu, selecting MACRO and
then SECURITY. SEt the security to medium or low.
--
Kevin Backmann


"Eightman88" wrote:

Since I have MANY WORD files, I'd like to go through the listing before I
delete/review. Is there a way to simply copy the FILE NAME ONLY on a
document for printing?

  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill
 
Posts: n/a
Default Have a lot of files in Word. How can a paste a listing of these?

See http://word.mvps.org/FAQs/General/PrintDocList.htm and the Printfolders
utility at http://www.gmayor.com/downloads.htm

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Eightman88" wrote in message
...
Since I have MANY WORD files, I'd like to go through the listing before I
delete/review. Is there a way to simply copy the FILE NAME ONLY on a
document for printing?


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
hard space between words. Sandy L Microsoft Word Help 7 May 5th 06 08:25 PM
Converting Word Perfect forms to Word forms elyse Microsoft Word Help 1 February 15th 06 08:17 PM
Underscore (_) will not always display in RTF files (Word 2002). David A Edge Microsoft Word Help 6 June 14th 05 10:39 AM
Envelope Address GR New Users 5 April 24th 05 09:48 PM
In Word, how can I see all files (*.*) in "save as"? citizen53 New Users 8 April 4th 05 04:56 PM


All times are GMT +1. The time now is 04:18 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"