G
gimme_this_gimme_that
I'd like to get the following clip of code to work:
I fathom that Excel is bulking because it can't use a compare a range
against a range?
Any suggestions?
Thanks.
Set ws = book.Sheets("WorkAResultSet")
Set wr = ws.Range("A1", "B" + Format(Utils.RowCount(ws)))
For itr = 1 To 3
t.Cells(1, itr + 8).Value = UCase(ws.Cells(1, itr).Value)
Next itr
For itr = 2 To nw
res = Application.Match(t.Range(t.Cells(itr, 1), t.Cells(itr, 2)),
wr, 0)
For j = 1 To 5
t.Cells(itr, j + 8).Value = ws.Cells(res, j).Value
Next j
Next itr
I fathom that Excel is bulking because it can't use a compare a range
against a range?
Any suggestions?
Thanks.
Set ws = book.Sheets("WorkAResultSet")
Set wr = ws.Range("A1", "B" + Format(Utils.RowCount(ws)))
For itr = 1 To 3
t.Cells(1, itr + 8).Value = UCase(ws.Cells(1, itr).Value)
Next itr
For itr = 2 To nw
res = Application.Match(t.Range(t.Cells(itr, 1), t.Cells(itr, 2)),
wr, 0)
For j = 1 To 5
t.Cells(itr, j + 8).Value = ws.Cells(res, j).Value
Next j
Next itr