Ein professionelles Diagrammwerkzeug, das Nutzern hilft, komplexe Informationen durch leicht verständliche Diagramme zu visualisieren.
Lösung von Fei Xue (Original in diesem Thread: http://social.msdn.microsoft.com/Forums/office/en-US/ff941cb2-9e27-46f4-9b27-6dfc4c7366c6/visio-2013-how-do-i-get-automatically-numbered-shapes-in-a-crossfunctional-flowchart?forum=officegeneral)
--- schnipp ---
Hi,
According to your description, you want to automatically numbered shapes.
I suggest you select the shapes you wanted numbered and using the code below to numbered the shapes:
Sub autoNumShape() Dim index As Integer index = 1 For i = 1 To Application.ActiveWindow.Selection.Count If TypeOf Application.ActiveWindow.Selection.Item(i) Is Shape Then Application.ActiveWindow.Selection.Item(i).Text = "PS-" & index & Application.ActiveWindow.Selection.Item(i).Text index = index + 1 End If Next i End SubScreen Shot:
You can get more detail about Visio Object Model from link below:
Best regards
Fei
--- schnapp ---