Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
hard space between words. | Microsoft Word Help | |||
Converting Word Perfect forms to Word forms | Microsoft Word Help | |||
Underscore (_) will not always display in RTF files (Word 2002). | Microsoft Word Help | |||
Envelope Address | New Users | |||
In Word, how can I see all files (*.*) in "save as"? | New Users |