I'm building a workbook to re-rate products based on proposed rates. I have three tabs, one which rates the products, one which stores the rates for each variable, and another with the product data. The goal of the VBA is to re-rate every customer on the data tab with the new rates. The product data tab is set up the following way: Index, variable 1, variable 2...charge. The rating tab is set up to look up the index and re-rate it based on the variables. The VBA works by running through each index and pasting it to the rating tab. How can I speed up the macro? It looks something like this:
Set wa = ActiveWorkbook.Sheets("Rate")
Set ws = ActiveWorkbook.Sheets("Data")
lRow = ws.Cells(Rows.Count, "A").End(xlUp).Row
For i = 1 to lRow:
Application.ScreenUpdating = False
wa.Range("L86") = ws.Range("BZ" & i).Value 'this is where the index is copied
ws.Range("BL" & i) = wa.Range("M65").Value 'this is a new re-rated attribute
ws.Range("BM" & i) = wa.Range("N65").Value 'this is a new re-rated attribute
Next i