I am new to VBA coding and could really use some help. Is there a way to have vba sort through data, try each of excels regression techniques, choose the one with the highest R^2, and then save the regression formula as a variable? Any help would be greatly appreaciated.