locked
Print to Status Bar in Visio 2010 RRS feed

  • Question

  • My Visio 2003 vba macro uses Debug.Print to display the pointer coordinates to the status bar. 

    But in Visio 2010 it displays to the Immediate window, which is undesireable. How can I display to the

    status bar in Visio 2010?

    Tuesday, February 14, 2012 8:42 PM

Answers

  • Debug.Print always outputs to the immediate window. I don't think that code can write to the status bar.


    -- Paul Herber, Sandrila Ltd. http://www.sandrila.co.uk/ Engineering and software shapes for Visio.

    Wednesday, February 22, 2012 11:11 AM

All replies

  • Hi,

    Please see this article, hope this useful:

    http://msdn.microsoft.com/en-us/library/gg144579.aspx

    More reference: "Visio 2010 Object Model Changes Since Earlier Versions"

    Best regards.


    William Zhou

    TechNet Community Support

    Thursday, February 16, 2012 8:13 AM
  • Can you show us the code?


    -- Paul Herber, Sandrila Ltd. http://www.sandrila.co.uk/ Engineering and software shapes for Visio.

    Thursday, February 16, 2012 10:12 AM
  • Paul, sorry for the delay.  Here's the code, works great in Visio 2003

    Private Sub vsoWindow_MouseMove(ByVal Button As Long, ByVal KeyButtonState As Long, ByVal x As Double, ByVal y As Double, CancelDefault As Boolean)
        Debug.Print "x-position is "; x
        Debug.Print "y-position is "; y
    End Sub

    Bill

    Thursday, February 16, 2012 11:51 PM
  • Debug.Print always outputs to the immediate window. I don't think that code can write to the status bar.


    -- Paul Herber, Sandrila Ltd. http://www.sandrila.co.uk/ Engineering and software shapes for Visio.

    Wednesday, February 22, 2012 11:11 AM