Yes, I want to re-position the sheets in the book based upon the value of a
cell in each sheet.
I would prefer not to rename the sheets because they are currently named
after the account which they reference. Maybe some hybrid NE-1001 for an
account named 1001 that is in the region NE. And then sort the sheets by
alpha via the readily accessible solution? Is this possible? :-) I'm open
to any workable programatic solution - I can't manually sort 850 sheets many
times a month.
Thank you!
> Do you mean that you want to re-position the worksheets in the
> workbook, based on the region value in each sheet? Can the sheets be
> renamed to this region value?
>
> Pete
Pete_UK - 03 May 2006 01:19 GMT
You will need a macro to do this. I think a workable solution would be
along the following lines:
Create a new sheet.
Scan through all other worksheets, recording the name of the sheet and
the region code in the range A1 to B850 of the new sheet.
Sort A1:B850 using region code as the sort key.
Scan through this range in sequence to obtain the worksheet name, and
move the sheet with this name to its appropriate position.
Hope this helps to get you started.
Pete
Pete_UK - 03 May 2006 01:52 GMT
Forgot to add:
Delete the new sheet at the end.
Pete