I have a macro file, which on opening will create a file and save it in a folder.
I have created another macro to open the above macro file.
My question here is to move the file created by the above macro to a different folder.
Please help.
Below is my code:
Sub fcr_macro()
Dim wb As Workbook
Dim clname, compname As String
clname = Range("D2").Value
compname = Range("D3").Value
Set wb = Workbooks.Open(filename)
wb.Close
End Sub
Just to give a little more description:
the codeline:
Set wb = Workbooks.Open(filename)
will open a file that contains a macro. And this macro will create a file in a folder.
I want this file created by above macro to be moved to a destination folder. And I want this to be accomplished in the above code.
Please Note: The macro that runs upon file open cant be changed due to some issues.
Could you please throw some light on this
Thanks