最初に、2 つの Excel ファイルを比較する VBA スクリプトを作成しました。次に、この質問で述べたように、バリアントを使用して最適化しました。しかし、後で VBScript に変更しました。ここで、上記の方法は機能しないようです。プロセスをスピードアップするための他の良い方法はありますか? 特に大きなファイルの場合。
私のコアコードは次のとおりです:-
For Each cell In objxlWorksheet1.UsedRange
If cell.Value <> objxlWorksheet2.Range(cell.Address).Value Then
'fill the color in the cell if there is a mismatch and Increment the counter
objxlWorksheet2.Range(cell.Address).Interior.ColorIndex = 3
counter=counter+1
End If
Next