Hello Gurus,
I am working on an item, where I need to compare 2 excel sheet ranges, Say File1 Sheet1& File2 Sheet1
Are there any other precautions that I can take to prevent such anomalous behavior ?
Thanks.
Arun
I am working on an item, where I need to compare 2 excel sheet ranges, Say File1 Sheet1& File2 Sheet1
- I am invoking File2 Sheet1 by File.Open
- Copying the respective range from file 1 & file 2 into Rng1 & Rng2
- I am concatenating column values for each row in Rng1 & Rng2 & putting it in respective sheet
- Invoking a Match from File 1 between Rng1 row value & Rng2 values
- Copying the Match results (Values only) to another column in Rng1
- Invoking a Match from File 1 between Rng2 Row value & Rng1 values
- Copying the Match results (Values only) to another column in Rng2
- Made Enable Events false
- Made Screenupdating False
- Made Application.Calculation as Manual
- Did Application.Calculate as and when required.
- Explicitly used This.Workbook, while referring to Rng1 & specified exact path for Rng2 as well.
- Made all settings opposite once program ended (like setting screenupdating to true)
Are there any other precautions that I can take to prevent such anomalous behavior ?
Thanks.
Arun