I should give you some background on what I am doing, so that you may understand where I'm coming from...
I have a .csv file that test equipment dumps data into. When a new test is run, the data is pasted into the first empty row at the bottom of the body of data. .csv files are of a special type that is text only, it will not save formatting so, in order to make this data easy to read for operators, I have written a macro that upon opening the .csv file, the user can click a custom toolbar button tied to my macro.
My macro formats the .csv file, inserting a title, column labels, color, etc... and then automatically saves it as a regular old .xls file that will save the formatting. Each time a new test is run, then the .csd file gets a new row of data at the bottom of the body of data. Then the user clicks the toolbar button in the .csd file to generate the easier to read version of the data. This .xls file is continually written over (the updated .csv with new data is saved overtop of the original .xls file, to keep it up to date).
What I am trying to do is to format the cells that contain the absolute max and min values per row to have a thick, colored border. The problem is two-fold. The first of which is how to determine the absolute max and min. The second is how to get Excel to evaluate all rows that contain data. Any thoughts? Thanks for any input you can spare!!
I have a .csv file that test equipment dumps data into. When a new test is run, the data is pasted into the first empty row at the bottom of the body of data. .csv files are of a special type that is text only, it will not save formatting so, in order to make this data easy to read for operators, I have written a macro that upon opening the .csv file, the user can click a custom toolbar button tied to my macro.
My macro formats the .csv file, inserting a title, column labels, color, etc... and then automatically saves it as a regular old .xls file that will save the formatting. Each time a new test is run, then the .csd file gets a new row of data at the bottom of the body of data. Then the user clicks the toolbar button in the .csd file to generate the easier to read version of the data. This .xls file is continually written over (the updated .csv with new data is saved overtop of the original .xls file, to keep it up to date).
What I am trying to do is to format the cells that contain the absolute max and min values per row to have a thick, colored border. The problem is two-fold. The first of which is how to determine the absolute max and min. The second is how to get Excel to evaluate all rows that contain data. Any thoughts? Thanks for any input you can spare!!