I have a file named control.xlsx and want to make macro in this file so control other files in same directory.
I tried like below,
Sub control()
name = Dir(ActiveWorkbook.path & "\*.xlsx")
Do While name <> ""
FileCopy name, ActiveWorkbook.Path & "\new" & "\" & name
Loop
End Sub
but it doesn't work.. anybody who can help me! I want to modify the copied excel files next. any tips!