Hi Everyone,
I have multiple files with the sheet name "Admin Costs" with varying row numbers in each file.
I want to take the value from Cell A2 and paste that value in a different workbook. But the tricky part is that I want to past that value equal to the number of rows I have in Column A from the corresponding file's sheet "Admin Costs".
I'm assuming the way a code would work is a VBA macro will open each file and read the value in cell A2 (save it as string?) and Also read the number of rows in each file sheet "Admin Costs" and copy paste A2 value times the number of rows in sheet "Admin Costs" in a different workbook named "Template tool" that I have open.
Can anyone help on how to create the code or give a quick sample code to start with.
Help/feedback highly appreciated.
I have multiple files with the sheet name "Admin Costs" with varying row numbers in each file.
I want to take the value from Cell A2 and paste that value in a different workbook. But the tricky part is that I want to past that value equal to the number of rows I have in Column A from the corresponding file's sheet "Admin Costs".
I'm assuming the way a code would work is a VBA macro will open each file and read the value in cell A2 (save it as string?) and Also read the number of rows in each file sheet "Admin Costs" and copy paste A2 value times the number of rows in sheet "Admin Costs" in a different workbook named "Template tool" that I have open.
Can anyone help on how to create the code or give a quick sample code to start with.
Help/feedback highly appreciated.