I've tested to aytomate my manual operatios, but failed in vain.
Sub test()
Dim mst As Visio.Master
Dim mywin As Visio.Window
For Each mst In ThisDocument.Masters
Set mywin = mst.OpenIconWindow
DoEvents
mywin.SelectAll
SendKeys "%E", True
SendKeys "^C", True
ActiveWindow.Activate
SendKeys "%E", True
SendKeys "^V", True
mywin.Close
DoEvents
Next
End Sub