Hi,
Can anyone please give me some inputs.
I have to find out the maximum value of all the entered values in the excel sheet.
The no of entries in each rows differs. For eg : A column may contain 30 rows. B column contains 40 rows etc.
I used this code. But it takes lot of time. Is the for each loop makes the issue? I am using used range option in for each loop.
For each a in activesheet.usedrange
If b<abs(a) then
b = abs(a)
End if
Next a
When i run this code, I am getting type mismatch error also because since the rows are different in each column.
I think selecting the used cells alone will clear the problem. Can anyone please help on this.
Can anyone please give me some inputs.
I have to find out the maximum value of all the entered values in the excel sheet.
The no of entries in each rows differs. For eg : A column may contain 30 rows. B column contains 40 rows etc.
I used this code. But it takes lot of time. Is the for each loop makes the issue? I am using used range option in for each loop.
For each a in activesheet.usedrange
If b<abs(a) then
b = abs(a)
End if
Next a
When i run this code, I am getting type mismatch error also because since the rows are different in each column.
I think selecting the used cells alone will clear the problem. Can anyone please help on this.