Zur Google Groups-Startseite    microsoft.public.word.vba.general
code to move files created between two dates to folder B?

gil <gil...@bellsouth.net>

Hi All, . I am seeking vba code to MOVE files created between date1 and date2 from folderA to folderB?

? Possibly something like:

    Dim date1 As String

    date1 = Selection.Text

'   navigation code to new selection

    Dim date2 As String

    date2 = Selection.Text

    Dim folderA As String

'    identify folderA

    Dim folderB As String

'    identify folderB

'   ??? Object.MoveFile Source, Destination

   WordBasic.CopyFileA folderA ?? FileName:= ??, Directory:=folderB

Cheers & tia

Gil