J
jesmin
Hello Anyone:
Best wishes. I have an excel report sheet that contains 3 sets of dat
in tabular form. For each set, I will find maximum value and wil
highlight the cell. This maximum value is in columns b,d,f,h and j.
am selecting each set of data as sepatre range and finding an
highlighting my cell.
----------code
range1.select
with selection
se
fndcell=cells.find(what:=val,after:=activecell,lookin:=xlvalues,lookat:=xlpart(orxlwhole),searchorder:=xlbycolumns,searchdirection:=xlnext,matchcase:=true).
end with
problem:
I have a max value in both 1st and 2nd set.(say 500). In my 2nd loop
though I am selecting 2nd range, its finding the 500 max value fro
range1(for set1 data) and highlighting it. The range2 selection is fin
but .find() is going outside the selection and trying to see the dat
there.
what is the wrong in my code.Is the problem in the find() cluase?
Thanks in advanc
Best wishes. I have an excel report sheet that contains 3 sets of dat
in tabular form. For each set, I will find maximum value and wil
highlight the cell. This maximum value is in columns b,d,f,h and j.
am selecting each set of data as sepatre range and finding an
highlighting my cell.
----------code
range1.select
with selection
se
fndcell=cells.find(what:=val,after:=activecell,lookin:=xlvalues,lookat:=xlpart(orxlwhole),searchorder:=xlbycolumns,searchdirection:=xlnext,matchcase:=true).
end with
problem:
I have a max value in both 1st and 2nd set.(say 500). In my 2nd loop
though I am selecting 2nd range, its finding the 500 max value fro
range1(for set1 data) and highlighting it. The range2 selection is fin
but .find() is going outside the selection and trying to see the dat
there.
what is the wrong in my code.Is the problem in the find() cluase?
Thanks in advanc