Copying and pasting loop in VBA Excel for multiple outputs
问题 So I have the following excel tabs: Code 1, Code 2, Code 3, LI, 2015, 2016, 2017, 2018, 2019, output for 2015 etc. For 2015, I have a table in '2015' tab with 10 rows a list of 3 code and their respective % values. e.g. ref name yr code 1 % code 2 % code 3 % 12345 NAME 2015 AB 50% CD 37% EF 13% 78901 NAME 2015 AX 54% OD 30% NG 6% 26572 NAME 2015 AE 60% CD 27% PF 13% I need the code 1 'AB' and % '50%' to be put into cells B5 and B6 in the tab Code 1. Same for codes 2 and 3 'CS' and '37%' in B5