Macro to get value from Excel Table

Hi

I want help please,

in the macro there are 3 values, (See Pic), I want to get the minimum Value and compere it with Excel File(Thickness.xls), and get the next value from the table ,for Example: Length +InputX is the Minimum Value =16, in Table there are 15 or 20, then the macro select 20 .

Thanks

SolidworksApi macros