Hi Nick,
[quote user="Nick D"]I was wondering if there is a macro / vba out there[/quote]
Your questions seems to be quite specific, so I guess there will be nothing similar available. But you never know, maybe somebody has already something in his pocket... ;-)
[quote user="Nick D"]On our Pile Location Plans, we number each pile from 1 to how ever many there are[/quote]
This part is quite easy and it's more about how user friendly (e.g. allow to use TextStyles, define position etc.) the tool should be.
[quote user="Nick D"]and we have to re-number all the rest of the piles[/quote]
This part is a bit more complicated, because it's not clear how it can be identified what text belong to what pile. It can be implemented in a different way:
- There will be a level reserved for texts only, so it will be easy to delete all texts and to start from scratch. No relation between pile and text exists there.
- Text is placed at the same coordinates as pile, so it's easy to find text without pile.
- Text is not not text but tags, so exact relationship between pile and text exists.
- Some custom solution is implemented...
[quote user="Nick D"]The numbering needed would start at 1 (top left of selection) and ...[/quote]
This part is the most complex in my opinion and depends a lot on specific conditions. I can imagine simple algorithm how to find a proper order that will work if axes are paralel to X and Y and regular. On the other hand the algorith can be quite complicated if piles are irregular.
Summary: In my opinion it can be done, probably VBA is enough for simple scenarios, but so far I am not aware about any such or similar macro available or discussed in the past in this community.
With regards,
Jan