cmschmitz24
Board Regular
- Joined
- Jan 27, 2017
- Messages
- 150
I need help modifying a VBA code to fill down a formula based on data in another worksheet.
I need to copy the formula in cell A1 down on the "Data" sheet based on values in column E from the "Delinquency" sheet, starting with E2.
Code:
Worksheets(2).Name = "Data"
EndRow = Sheet1.Range("E" & Rows.Count).End(xlUp).Row
Range("A1").Formula = "=TEXT(Delinquency!R[1]C[6],""00000000"")"
Range("A1").Select
Selection.AutoFill Destination:=Range("A1:A" & EndRow), Type:=xlFillDefault
I need to copy the formula in cell A1 down on the "Data" sheet based on values in column E from the "Delinquency" sheet, starting with E2.