Hi Friends:
This has proved to be a very tough task for me and beyond my reach. I was trying to extract the latest (topmost) colored cell values from certain columns in the workbook and a forum member has come up with the following code for this purpose. This code works fine for normal formating. However, my cell colors are set through conditional formating and therefore these cell colors are not recognized by interior colorindex or color functions. I would therefore appreciate if our forum members can help me out in modifying this code (or alternatively provide another code) to be able to recognize the cell colors and return the relavant values. I am describing my problem and my requirements in details.
I have uploaded a sample workbook here. In this workbook, the cells in column G (colorindex 35) and J (colorindex 40) are colored through the following formulas:
column G: formula =Large(G3:G30,1)<G2 interior color index 35
column J: formula =Small(J3:J30,1)>J2 interior color index 40
There are 450+ such files in a folder and I wish to extract the latest colored cell values (in a new workbook called HiLoList.xls created thr this code), alongwith relavant column A values from these files. Files are in Excel 2003, have one sheet each and are properly sorted. I don't know much of VBA and not in position to tweak the code suitably. I think there could be two approaches. One, to modify this code to recognize the cell colors set thr the above conditions and then extract the required cell values. Second, convert the conditionally formated cell colors to normal highlighted cell colors, so that this code itself can do the job. (Maybe, this could also be done by running a suitable code to convert the conditionally formated workbook to standard formated workbook). I would appreciate any help in this matter.
Bookmarks