Window_SelectionChanged events mighjt be one of the ways.
For example.
Option Explicit
Private WithEvents myWin As Visio.Window
Sub StartEvents()
Set myWin = ActiveWindow
End Sub
Private Sub myWin_SelectionChanged(ByVal Window As IVWindow)
If myWin.Selection.Count = 1 Then
MsgBox "You selected shape " & myWin.Selection(1).Name
End If
End Sub
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.