Is there a way to retrieve and compile object text from a shape or connector in a Visio drawing?

I recomnend check this article - Listing Connections in Visio 2010 by David J Parker. There you can find VBA code.