Hi,
I have the following code that is supposed to take input from a control sheet called 'input' which has file path and name that is supposed to be in cells A5 (the name of the sheet to be renamed), C5(the file path) and D5(the file name) and E5(C5&D5). I want the macro to be able to scroll through rows 5-13 and open up the file in the specified file path, copy a sheet called "attestation" and paste it back in the original controlfile. I would then like the tab that was just copied to be pasted at the last sheet in the controlfile and renamed based on the cell value of the input tab cell A5.
I would then like to put a formula in the cells of the new sheet and lastly close the workbook that the sheet was copied from.
I would then like this macro to scroll through the rows 5-13 and end up with 9 new tabs in my controlfile.
The code pasted below is what I have so far; but I'm not sure why it only copies 5 of the sheets as opposed to 9 and the rename doesn't work.
thanks!
Bookmarks