문제

Is it possible to programmatically change the selected master within a specific stencil document in Visio, using VBA? If so, how would I go about doing it?

It doesn't seem possible to use the Window.Select method, since that seems to only work in the drawing page...

도움이 되었습니까?

해결책

With Visio API only it is only possible to get selected master(s) using the Window.SelectedMasters property, but not set it (it is a readonly property).

So, there is no direct solution. If you are okay with (sort of) workaround, you can take a look at mine here (the same question):

http://visguy.com/vgforum/index.php?topic=3378.msg13172#msg13172

It simply sends keyboard keys to the stencil window right number of times :)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top