Hi All,
I need VBA code please that will do the following:- Open one file at a time within a folder called "Provisional NSIs" each ending with xlsx ( around 67 files in all but numbers may change), example of file location :- C:\Users\shawn\OneDrive\Desktop\Provisional NSIs\2 Staff Locker 3 Cabinet Vertical.xlsx. Then open a second file named NSI New Template on the Desktop, (C:\Users\shawn\OneDrive\Desktop\NSI new template.xlsx), copy and paste special values from the "Provisional NSIs" Folder file specifically cells D37, F37, H37:J37 into NSI New Template at G41, I41 and K41:M41. Then save NSI New Template as the opened File Name from the "Provisional NSIs" folder with 2022 appended to the name into a folder called NSIs 2022, close both files, reopen NSI New Template, obtain the next file from the folder "Provisional NSIs" and repeat the process until all the excel files from the folder have had their data copied over.
Hope someone can assist.
Thank you
I need VBA code please that will do the following:- Open one file at a time within a folder called "Provisional NSIs" each ending with xlsx ( around 67 files in all but numbers may change), example of file location :- C:\Users\shawn\OneDrive\Desktop\Provisional NSIs\2 Staff Locker 3 Cabinet Vertical.xlsx. Then open a second file named NSI New Template on the Desktop, (C:\Users\shawn\OneDrive\Desktop\NSI new template.xlsx), copy and paste special values from the "Provisional NSIs" Folder file specifically cells D37, F37, H37:J37 into NSI New Template at G41, I41 and K41:M41. Then save NSI New Template as the opened File Name from the "Provisional NSIs" folder with 2022 appended to the name into a folder called NSIs 2022, close both files, reopen NSI New Template, obtain the next file from the folder "Provisional NSIs" and repeat the process until all the excel files from the folder have had their data copied over.
Hope someone can assist.
Thank you