willow1985
Well-known Member
- Joined
- Jul 24, 2019
- Messages
- 888
- Office Version
- 365
- Platform
- Windows
I am getting the following error:
On the following section of code and I am not sure why. Any help would be appreciated. I have used this code before with no issues, however it never had table references or was array formulas....
Note: The table name is "DD"
On the following section of code and I am not sure why. Any help would be appreciated. I have used this code before with no issues, however it never had table references or was array formulas....
Note: The table name is "DD"
VBA Code:
Range("AB3").Select
LastRowColumnG = Cells(Rows.Count, 7).End(xlUp).Row
Range("AB3:AB" & LastRowColumnG).Formula = "=IFERROR(INDEX(Codes!C[-25],MATCH([@[Ship To Location]],Codes!C[-27],FALSE)),""N/A"")"
Range("AC3").Select
LastRowColumnG = Cells(Rows.Count, 7).End(xlUp).Row
Range("AC3:AC" & LastRowColumnG).FormulaArray = "=IF(ISNUMBER(MATCH([@[Due Date]]&""|""&[@[Order Type]]&""|""&[@[Deere Part Number]]&""|""&[@[Order Qty]]&""|""&[@[PO Number]]&""|""&[@[PO Line Number]]&""|""&[@[Ship to Location Code]],MF[Ship Date]&""|""&MF[Status]&""|""&MF[Part No]&""|""&MF[QTY Ordered]&""|""&MF[PO No]&""|""&MF[[PO Line ]]&""|""&MF[Address ID],0)),"""",""Flag"")"
Range("AD3").Select
LastRowColumnG = Cells(Rows.Count, 7).End(xlUp).Row
Range("AD3:AD" & LastRowColumnG).Formula = "=YEAR([@[Due Date]])"
Range("AE3").Select
LastRowColumnG = Cells(Rows.Count, 7).End(xlUp).Row
Range("AE3:AE" & LastRowColumnG).FormulaArray = "=IF(ISNUMBER(MATCH([@[Order Type]]&""|""&[@[Deere Part Number]]&""|""&[@[Order Qty]]&""|""&[@[PO Number]]&""|""&[@[PO Line Number]]&""|""&[@[Ship to Location Code]],MF[Status]&""|""&MF[Part No]&""|""&MF[QTY Ordered]&""|""&MF[PO No]&""|""&MF[[PO Line ]]&""|""&MF[Address ID],0)),"""",""Flag"")"