I have 2 arrays and a bunch of data. The arrays are set as ranges...
Dim Ar1() As Variant, Ar2() As Variant
Ar2= Workbooks("workbook2.xlsx").Sheets("Sheet2").Range("A2:A" & LastRow).Value
Ar1= Workbooks("workbook2.xlsx").Sheets("Sheet1").Range("A2:A" & LastRow).Value
Trying to find something like...
If workbooks("workbook1.xlsx").sheets("Sheet1").range("A" & LastRowH).value = Ar1 Then
do an action
Else
do action 2
End If
and a second If...Then for Ar2. This keeps erroring out on me with the Datatype error. Please let me know if there is a way I can do this. Thanks!!!!
edit: if I check a range and apply the actions to those that match, then that would be more effecient - Thanks!