D Douglas J. Steele Feb 20, 2005 #6 You have to copy them one-by-one. If you're wanting to copy all files matching a particular pattern, use the Dir function to determine the files.
You have to copy them one-by-one. If you're wanting to copy all files matching a particular pattern, use the Dir function to determine the files.
F Frank Dulk Feb 20, 2005 #7 They are files *.XLS Douglas J. Steele said: You have to copy them one-by-one. If you're wanting to copy all files matching a particular pattern, use the Dir function to determine the files. Click to expand...
They are files *.XLS Douglas J. Steele said: You have to copy them one-by-one. If you're wanting to copy all files matching a particular pattern, use the Dir function to determine the files. Click to expand...
D Douglas J. Steele Feb 21, 2005 #8 Dim strDestinationFolder As String Dim strSourceFolder As String Dim strFile As String strDestinationFolder = "C:\Another Folder\" strSourceFolder = "C:\My Data\" strFile = Dir$(strSourceFolder & "*.XLS") Do While Len(strFile) > 0 FileCopy strSourceFolder & strFile, strDestinationFolder & strFile strFile = Dir$() Loop
Dim strDestinationFolder As String Dim strSourceFolder As String Dim strFile As String strDestinationFolder = "C:\Another Folder\" strSourceFolder = "C:\My Data\" strFile = Dir$(strSourceFolder & "*.XLS") Do While Len(strFile) > 0 FileCopy strSourceFolder & strFile, strDestinationFolder & strFile strFile = Dir$() Loop
F Frank Dulk Feb 22, 2005 #9 Thank you very much. Douglas J. Steele said: Dim strDestinationFolder As String Dim strSourceFolder As String Dim strFile As String strDestinationFolder = "C:\Another Folder\" strSourceFolder = "C:\My Data\" strFile = Dir$(strSourceFolder & "*.XLS") Do While Len(strFile) > 0 FileCopy strSourceFolder & strFile, strDestinationFolder & strFile strFile = Dir$() Loop Click to expand...
Thank you very much. Douglas J. Steele said: Dim strDestinationFolder As String Dim strSourceFolder As String Dim strFile As String strDestinationFolder = "C:\Another Folder\" strSourceFolder = "C:\My Data\" strFile = Dir$(strSourceFolder & "*.XLS") Do While Len(strFile) > 0 FileCopy strSourceFolder & strFile, strDestinationFolder & strFile strFile = Dir$() Loop Click to expand...