dancingcab
New Member
- Joined
- Nov 10, 2014
- Messages
- 14
Hi,
I have several columns of data. I have created a form that allows the user to select which variable they wish to sort by and they can select up to four variables. The combobox allows a selection only from the headers in the columns. In order to sort in the correct order I need to find out which column that variable is in. I was trying to use something like
myColumn1 = Worksheets("Galv Results").Find(cboDataSort1.Value, , xlGeneral, xlWhole).column
but i get runtime error 438 Object doesn't support this property or method.
Can anyone advise on what I've done wrong here? Is using Find the issue? I've never used it before. Should i use Hlookup or index and match instead?
Thanks!
I have several columns of data. I have created a form that allows the user to select which variable they wish to sort by and they can select up to four variables. The combobox allows a selection only from the headers in the columns. In order to sort in the correct order I need to find out which column that variable is in. I was trying to use something like
myColumn1 = Worksheets("Galv Results").Find(cboDataSort1.Value, , xlGeneral, xlWhole).column
but i get runtime error 438 Object doesn't support this property or method.
Can anyone advise on what I've done wrong here? Is using Find the issue? I've never used it before. Should i use Hlookup or index and match instead?
Thanks!