![]() |
|
#2
|
|||
|
|||
|
DIR won't return files in alphabetical order. You can try filesystemobject:
Code:
Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
Dim oFSO As FileSystemObject
Dim oFolder As Folder
Dim oFile As File
Set oFSO = New FileSystemObject
Set oFolder = oFSO.GetFolder("Your folder path")
For Each oFile In oFolder.Files
Debug.Print oFile.Name
Next oFile
End Sub
|
| Tags |
| merge tables, multiple open, quirks |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Determining file path for linked image in Word 2007
|
samhdc | Word | 7 | 01-26-2015 04:21 PM |
Reverse Order for Flashcards?
|
bknollman3 | PowerPoint | 2 | 03-23-2013 06:34 AM |
Word Merge from Excel not in same order!
|
Coreysan | Mail Merge | 3 | 12-11-2011 04:22 PM |
Contact order
|
djchapple | Outlook | 5 | 09-08-2011 11:42 AM |
Order of Service
|
sparky3883 | Word | 1 | 11-17-2008 11:11 PM |