I have 16 different blocks of code that have the same structure as below. Is there a way to speed this up and make it cleaner with loops? Thanks
ActiveSheet.Range("D8") = reg1
ActiveSheet.Range("D9") = reg2
ActiveSheet.Range("D10") = reg3
ActiveSheet.Range("D11") = reg4
ActiveSheet.Range("D12") = reg5
ActiveSheet.Range("D13") = reg6
ActiveSheet.Range("D14") = reg7
ActiveSheet.Range("D15") = reg8
ActiveSheet.Range("D16") = reg9
ActiveSheet.Range("D17") = reg10
ActiveSheet.Range("D18") = reg11
ActiveSheet.Range("D19") = reg12
ActiveSheet.Range("D20") = reg13
ActiveSheet.Range("D21") = reg14
ActiveSheet.Range("D8") = reg1
ActiveSheet.Range("D9") = reg2
ActiveSheet.Range("D10") = reg3
ActiveSheet.Range("D11") = reg4
ActiveSheet.Range("D12") = reg5
ActiveSheet.Range("D13") = reg6
ActiveSheet.Range("D14") = reg7
ActiveSheet.Range("D15") = reg8
ActiveSheet.Range("D16") = reg9
ActiveSheet.Range("D17") = reg10
ActiveSheet.Range("D18") = reg11
ActiveSheet.Range("D19") = reg12
ActiveSheet.Range("D20") = reg13
ActiveSheet.Range("D21") = reg14