Newsgroups: microsoft.public.word.vba.general
Von: "gil" <gil...@bellsouth.net>
Datum: Wed, 4 Jul 2007 13:54:28 -0400
Lokal: Mi 4 Jul. 2007 19:54
Betreff: Re: code to move files created between two dates to folder B?
or something like: Dim strDefFilePath As String, strFileToCopy As String strSourcePath = "c:\Patients\AMR\" strSourcePath = "" ' identify folderA ' ... but it needs to move over up to 10 jpg files :) "gil" <gil...@bellsouth.net> wrote in message news:eEBS2KmvHHA.4552@TK2MSFTNGP03.phx.gbl... ? 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 Sie müssen sich anmelden, bevor Sie Nachrichten veröffentlichen können.
Bevor Sie eine Nachricht posten können, müssen Sie zunächst dieser Gruppe beitreten.
Bitte aktualisieren Sie vor dem Posten in den Abonnementeinstellungen Ihren Spitznamen.
Sie haben nicht die erforderliche Berechtigung zum Posten.
| ||||||||||||||