Hello,
I am trying to create a macro that will allow employees to sort a product matrix in excel. The user would select up to six criteria for sorting by simply clicking on the headers over the columns. I would prefer not to use a list box, since the list is quite long and sub-catagorized.
Idealy, a message box or input box (or something similar) would ask the user to select the six criteria in order of priority by clicking on the header cells in row 3, then pass execution back to the macro.
I am struggling with finding a way to pass control to the mouse (mid-macro execution), capture/select the cells, then pass execution back to the macro. I searched the forum database and web, but found nothing similar.
Can anyone, please help?
Thank you in advance!
OldOne
I am trying to create a macro that will allow employees to sort a product matrix in excel. The user would select up to six criteria for sorting by simply clicking on the headers over the columns. I would prefer not to use a list box, since the list is quite long and sub-catagorized.
Idealy, a message box or input box (or something similar) would ask the user to select the six criteria in order of priority by clicking on the header cells in row 3, then pass execution back to the macro.
I am struggling with finding a way to pass control to the mouse (mid-macro execution), capture/select the cells, then pass execution back to the macro. I searched the forum database and web, but found nothing similar.
Can anyone, please help?
Thank you in advance!
OldOne