How to to specify .top and other position parameters of Visio 2013 Application Window
Posted on 2014-02-08
In Excel, Application.top enables a new top value to be set for the application, but
In Visio, Application.top does not exist.
In Visio, I can access the Application window, as evidenced by the following:
Application.Window.Caption = Visio Professional
Application.Window.type = 5
But Application.Window.is 'READ ONLY' (and unsurprisingly has no .Top property).
The Visio Application Window (which can contain file: Slave.VSDM) needs to be positioned in relation to the position of the Application Window of an Excel Application instance, whose .XLMS file opens the Visio Application and creates/controls the Slave.VSDM file.
How do I use automation to control the position of the Visio Application window? If it requires inter-operability and a ThisAddIn class in Visio to access more of the visio object model, then this would be new work for me. I dont have Visual Studio.
Thanks, Kelvin4 (vba user) .