Hi,
It does indeed work great for the dummy data but not for my actual template but I think it will work with a couple of tweeks.
Is there any way after the current code is run it could delete the rows (after row 20) if:- Row is blank
- Row contains (exactly in column A) "App024", ,"Retail, "Excel VAT", "Business", "Inter", "Period", "Code", "Page", "End"
I think the code for the above is similar to this below (cut from a previous code) :
If WorksheetFunction.CountA(Rows(N)) = 0 Then
Rows(N).Delete
End If
If InStr(Cells(N, 1), "APP024") > 0 Or InStr(Cells(N, 1), "Retail") > 0 Or InStr(Cells(N, 2), "Excl VAT") > 0 Or InStr(Cells(N, 1), "Business") > 0 Or InStr(Cells(N, 1), "Inter") > 0 Or InStr(Cells(N, 1), "Period") > 0 Or InStr(Cells(N, 1), "Code") > 0 Or InStr(Cells(N, 1), "Page") > 0 Or InStr(Cells(N, 1), "End") > 0Then
Rows(N).Delete
End If
Then I would need the header rows inputted and formatted:
.Rows("18:20").Insert Shift:=xlDown
Range("A20") = "Code"
Range("B20") = "Business"
Range("C20") = "Ex VAT £"
Range("D20") = "VAT £"
Range("E20") = "INC VAT £"
Range("F20") = "Ex VAT £"
Range("G20") = "VAT £"
Range("H20") = "INC VAT £"
Range("C19:E19").Merge
Range("F19:H19").Merge
Range("C19:E19") = "Contributions From"
Range("F19:H19") = "Contributions To"
Range("A19:H20").Font.Bold = True
Can you help in combining all codes please?
Bookmarks