I am trying to run the macro below. Row 4 are my column headers. The formulas should go on Row 5 and then copy down to the last row of data. When the macro is run, the formula in row 5 is now replaced with the column header from row 4?
Dim UsdRws As Long
UsdRws = Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
Range("F5:F5" & UsdRws).Formula = "=MID(CELL(""filename"",A1),FIND(""]"",CELL(""filename"",A1))+1,255)"
Range("F5:F" & UsdRws).FillDown
Range("K5:K5" & UsdRws).Formula = "=CONCAT(H5,"": "",$I$4,"":"","" "",I5,"","",$J$4,"":"","" "",J5)"
Range("k5:k" & UsdRws).FillDown
Dim UsdRws As Long
UsdRws = Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
Range("F5:F5" & UsdRws).Formula = "=MID(CELL(""filename"",A1),FIND(""]"",CELL(""filename"",A1))+1,255)"
Range("F5:F" & UsdRws).FillDown
Range("K5:K5" & UsdRws).Formula = "=CONCAT(H5,"": "",$I$4,"":"","" "",I5,"","",$J$4,"":"","" "",J5)"
Range("k5:k" & UsdRws).FillDown