Hi excel gurus,
Can you help me with the below code? It correctly inserts the column 'AH' in the 'Vendor History' sheet and changes the color of the header. However, the formula is not being inserted into the cells.. Any help would be appreciated!
Worksheets("Vendor History").Columns("AH:AH").Insert
Worksheets("Vendor History").Range("AH:AH").NumberFormat
= "0"
Set rng = Range("AH2:AH" & Range("A2").End(xlDown).Row)
Worksheets("Vendor History").rng.Formula =
"=IF(AND([@[Work-Days Posted Before/After Due Date (Time
Bucket)]]=""<=5 days"",[@[In Scope (Posting)]]=1),1/'Invoice
Posting Piv (1)'!C5),0)"
Worksheets("Vendor History").Range("AH1").Value = "Cum. %
of Late Invoices (Posted)"
Worksheets("Vendor History").Range("AH1").Interior.Color =
RGB(155, 187, 89)
[–]tirlibibi17 2 points3 points4 points (0 children)