I am using MS Windows Desktop and Excel 2019.
After my epic fail with trying the Data Filter/Allow Edit Ranges method for sorting a locked worksheet,
I need a VBA code for sorting to copy into 40 like-formatted worksheets within the same workbook.
On each worksheet, I would like to sort the Range B12:T511.
Both Range I12:I511 and Range Q12:Q511 are formula driven locked cells, and generate values.
I have no headers, but on click and/or double click on Row 11, I want the option to sort the rows within B12:T511
Row 11 are cells with only an arrow sign symbolizing that the column within the range is sortable.
If it is significant, G12:G511 are dates (MM/DD/YY), both I12:I511 and K12:K511 are currency.
There may be some blank cells within the range.
I want to avoid creating 360 sort buttons (9 on ea. 40 pages) because the file size is almost 2000kb without data entered.
I want the option to sort the entire range in both ascending and descending order (if possible):
On click/double click B11 >> Sort range based on B12:B511
On click/double click C11 >> Sort range based on C12:C511
On click/double click D11 >> Sort range based on D12:D511
On click/double click E11 >> Sort range based on E12:E511
On click/double click K11 >> Sort range based on K12:K511
On click/double click Q11 >> Sort range based on Q12:Q511
On click/double click R11 >> Sort range based on R12:R511
On click/double click S11 >> Sort range based on S12:S511
On click/double click T11 >> Sort range based on T12:T511
Thanks in advance for any help with a solution for this.
After my epic fail with trying the Data Filter/Allow Edit Ranges method for sorting a locked worksheet,
I need a VBA code for sorting to copy into 40 like-formatted worksheets within the same workbook.
On each worksheet, I would like to sort the Range B12:T511.
Both Range I12:I511 and Range Q12:Q511 are formula driven locked cells, and generate values.
I have no headers, but on click and/or double click on Row 11, I want the option to sort the rows within B12:T511
Row 11 are cells with only an arrow sign symbolizing that the column within the range is sortable.
If it is significant, G12:G511 are dates (MM/DD/YY), both I12:I511 and K12:K511 are currency.
There may be some blank cells within the range.
I want to avoid creating 360 sort buttons (9 on ea. 40 pages) because the file size is almost 2000kb without data entered.
I want the option to sort the entire range in both ascending and descending order (if possible):
On click/double click B11 >> Sort range based on B12:B511
On click/double click C11 >> Sort range based on C12:C511
On click/double click D11 >> Sort range based on D12:D511
On click/double click E11 >> Sort range based on E12:E511
On click/double click K11 >> Sort range based on K12:K511
On click/double click Q11 >> Sort range based on Q12:Q511
On click/double click R11 >> Sort range based on R12:R511
On click/double click S11 >> Sort range based on S12:S511
On click/double click T11 >> Sort range based on T12:T511
Thanks in advance for any help with a solution for this.