Hello,
I am trying to use the max function that returns the maximum value stored in 12 different comboboxes and stores it in a variable r. The boxes are named cb1, cb2, cb3, etc. The line of code I have is
r = WorksheetFunctions.Max(me.cb1.value, me.cb2.value, [...etc...], me.cb12.value)
but this is giving me run time error 1004, unable to get the max property of the WorksheetFunction class. I believe this is because the default value of the comboboxes are blank. I'd like to keep the default values to be blank, so is there a way to deal with this?
Bookmarks