Greetings,
I have a workbook with multiple worksheets and for each worksheet I want to be able to perform the same functions (when I am on that worksheet). The macros are pretty simple: I want to be able to sort from high to low, low to high, a to z and z to a for a selection of columns. Every worksheet will have the same column headers, although not the same number of rows of data.
My question: how can I create the macros so that I do not have to write the same ones over and over for each different sheet? Is there a way to write ones that specify the active worksheet and can adjust the range to include any rows with data in them?
Thanks for any help!
Cathy
I have a workbook with multiple worksheets and for each worksheet I want to be able to perform the same functions (when I am on that worksheet). The macros are pretty simple: I want to be able to sort from high to low, low to high, a to z and z to a for a selection of columns. Every worksheet will have the same column headers, although not the same number of rows of data.
My question: how can I create the macros so that I do not have to write the same ones over and over for each different sheet? Is there a way to write ones that specify the active worksheet and can adjust the range to include any rows with data in them?
Thanks for any help!
Cathy