There may be, but if there is, it will be slow and error prone.
Visio is no good for this kind of thing, it has been pushed, on the basis of a fundamentally poor data design, into regions that it was never intended for. It is a great tool for making pretty sketches. Not for making smart, data linked, intelligent, diagrams.
Just my penny worth.