Hi
You will need to specify the array base to use so at the top of the general module enter
Then try
Sub aaa()
shtarr = Array("UnitCost_TBL", "UnitsTotal_TBL", "LaborCost_TBL", "LaborHRs_TBL", "Total_TBL")
For Each ce In Range("A6:A" & Cells(Rows.Count, 1).End(xlUp).Row)
outrow = WorksheetFunction.Match(ce, Sheets("UnitCost_TBL").Range("A:A"), 0)
outcol = WorksheetFunction.Match(Range("B1"), Sheets("UnitCost_TBL").Rows("1:1"), 0)
For I = LBound(shtarr) To UBound(shtarr)
Sheets(shtarr(I)).Cells(outrow, outcol).Value = ce.Offset(0, I).Value
Next I
Next ce
End Sub
This will paste the values to the relevant sheets.
See how that goes. Note that in the example file you are missing the product Call Bells In Pt Bathrooms (Nurse Call System). As this has been designed with all the products in the output sheets, it will just error.
rylo
Bookmarks