This has been a constant frustration in minion management.
Ideally I'd love to see an "Attack from Position" command, that orders them to attack in accordance with the current stance, but to not pursue targets out of range, and to not use melee unless approached. The suggestion in the title would probably be an easier fix, but not entirely solving the problem.