Hi,
Can anyone please help me code a macro for the below case:
I need to take the file names from the excel sheet and copy all the files from a folder to another..
Thanks.
Hi,
Can anyone please help me code a macro for the below case:
I need to take the file names from the excel sheet and copy all the files from a folder to another..
Thanks.
Sub Test() Dim Source As String, target As String, f Source = "C:\Fld1\" target = "C:\Fld2\" For Each f In Selection FileCopy Source & f, target & f Next f End Sub
MVP (Excel 2008-2010)
Post a workbook with sample data and layout if you want a quicker solution.
To help indent your macros try Smart Indent
Please remember to mark threads 'Solved'