Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
MACRO
I am looking for help with writing a macro that will copy ALL the excel files
in a folder and paste them in another directoiry. The files on the network in k\finance\manacs\mdr\ohd reports\ I wantto copy all the files in the OHD REPORTS folder and paste them l \ Clyde I have tried using record a macro but the macro is blank. Can anybody help. ? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
MACRO
Const DirFrom As String = "k:\fin\service\mothly reports\ohd reports"
Const DirTo As String = "k:\fin\ops\distribution\ohdreports" Sub CopyFiles() Dim oFSO As Object Set oFSO = CreateObject("Scripting.FilesystemObject") oFSO.CopyFolder DirFrom, DirTo End Sub -- HTH Bob Phillips "Clyde" <Clyde @discussions.microsoft.com wrote in message ... I am looking for help with writing a macro that will copy ALL the excel files in a folder and paste them in another directoiry. The files on the network in k\finance\manacs\mdr\ohd reports\ I wantto copy all the files in the OHD REPORTS folder and paste them l \ Clyde I have tried using record a macro but the macro is blank. Can anybody help. ? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro recorded... tabs & file names changed, macro hangs | Excel Worksheet Functions | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
how to count/sum by function/macro to get the number of record to do copy/paste in macro | Excel Programming | |||
macro to delete entire rows when column A is blank ...a quick macro | Excel Programming | |||
Start Macro / Stop Macro / Restart Macro | Excel Programming |