Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 06-16-2014, 05:17 PM
gmaxey gmaxey is offline Determining merge order Windows 7 32bit Determining merge order Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,636
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

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
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
 

Tags
merge tables, multiple open, quirks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Determining merge order Determining file path for linked image in Word 2007 samhdc Word 7 01-26-2015 04:21 PM
Determining merge order Reverse Order for Flashcards? bknollman3 PowerPoint 2 03-23-2013 06:34 AM
Determining merge order Word Merge from Excel not in same order! Coreysan Mail Merge 3 12-11-2011 04:22 PM
Determining merge order Contact order djchapple Outlook 5 09-08-2011 11:42 AM
Determining merge order Order of Service sparky3883 Word 1 11-17-2008 11:11 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:16 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft