August 3, 2020
Hi there,
In my VBA code there is a loop in column Y and there is formula in Column Z
Then i want to filter data "Success" in column Z
But i select only "Success" but not whatever the loop data in column Y
For example if i filtered manually "Success" there total number of rows filtered is 675
If i use macro then only 478 rows are visible
Could anyone please help me on this ?
October 5, 2010
Hi Arunachal,
at the start of the Validation() sub you're setting calculation to manual mode Application.Calculation = xlCalculationManual
When you run Validation and filter the data the VLOOKUP formulae in some cells have not updated and are showing #N/A errors.
At the end of the Validation() sub you set calculation back to automatic and the #N/A cells with VLOOKUP update to the value "Success" hence the difference in the counts.
Not sure why you have calculation set to manual at the start of the Validation() sub?
Regards
Phil
1 Guest(s)