I've verified that all computers are using Office 365 and are fully up to date.
There is a test grading macro that calls three subroutines. First, the the data to be graded is pasted along with the answers. A test is generated that copies over the categories but not answers--this works on the problem computer.
To start the grading process, comparison columns are called up (XCheckColumnData). This sub also works on the problem computer. The next step is to bring up more columns with formulas that compare the columns, and this is where it fails on one computer; that is XGetScore. When it is attempted it gives the following message: "Run-time error '1004': Application-defined or object-defined error" and highlights this part: ActiveCell.FormulaR1C1 = _ "=[@[" & BoolArgument1(I) & "]]=[@[" & BoolArgument2(I) & "]]"
Here is the XCheckColumnData subroutine that precedes the failed one:
Sub XCheckColumnData()
Call XDeleteChecks
Dim ranges, columnheader, newcolumnheaders, columnletters, lookupcolumns As Variant
ranges = Array("I:I", "K:K", "M:M", "AE:AE", "AG:AG")
columnheaders = Array("[Column1]", "[Column1]", "[Column1]", "[3 in 1]", "[Column1]")
newcolumnheaders = Array("CPU Check", "FF Check", "OEM Check", "2in1 Check", "Chrome Check")
columnletters = Array("I2", "K2", "M2", "AE2", "AG2")
lookupcolumns = Array("Processor Number", "Form Factor Category", "OEM Brand", "2 in 1", "Chromebook")
Sheets("Platinum").Select
For I = 0 To 4
J = 0
Columns(ranges(I)).Select
Selection.Insert Shift:=xlToRight
Range("Table1[[#Headers]," & columnheaders(I) & "]").FormulaR1C1 = newcolumnheaders(I)
Range("Table1[" & newcolumnheaders(I) & "]").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorDark1
.TintAndShade = -0.149998474074526
.PatternTintAndShade = 0
End With
Range(columnletters(I)).Select
ActiveCell.FormulaR1C1 = _
"=INDEX(Table2,MATCH([@[Product Identifier]],Table2[Part Number],0),MATCH(""" & lookupcolumns(I) & """,Table2[#Headers],0))"
Next I
End Sub
And here is XGetScore which gives the error:
Sub XGetScore()
Dim BoolColumn, BoolName, BoolArgument1, BoolArgument2 As Variant
BoolColumn = Array("AS", "AT", "AU", "AV", "AW", "AX")
BoolName = Array("CPU Bool", "FF Bool", "OEM Bool", "2in1 Bool", "Chrome Bool", "Row Error")
BoolArgument1 = Array("Processor Number", "Form Factor Category", "OEM Brand", "2 in 1", "Chromebook")
BoolArgument2 = Array("CPU Check", "FF Check", "OEM Check", "2in1 Check", "Chrome Check")
I = 0
For I = 0 To 5
Range(BoolColumn(I) & "1").Select
ActiveCell.FormulaR1C1 = BoolName(I)
Range(BoolColumn(I) & "2").Select
If I < 5 Then
ActiveCell.FormulaR1C1 = _
"=[@[" & BoolArgument1(I) & "]]=[@[" & BoolArgument2(I) & "]]"
ElseIf I = 5 Then
Range("AX2").Formula = _
"=AND(AS2:AW2)"
End If
Next I
End Sub